Home>

sklearn
scipy
numpy
matplotlib
I want to create artificial intelligence using such things.

PS C: \ Users \ user \ python_app>python digitsData1.py
Traceback (most recent call last):
  File "C: \ Users \ user \ python_app \ digitsData1.py", line 2, in<module>
    import sklearn.datasets
ModuleNotFoundError: No module named'sklearn'
Corresponding source code
#! python3.8
import sklearn.datasets
digits = sklearn.datasets.load_digits ()
print ("Number of data =", len (digits.images))
print ("image data =", digits.images [0])
print ("What numbers =", digits.target [0]))
What I tried

I'm using python 3.9 and I was able to install anything other than sklearn, but sklearn doesn't currently support 3.9.
I have installed python3.8.

Install 3.8 and at the command prompt

py -3.8 -m pip install scikit-learn

Was executed and installed.

However, even though I wrote #! Python3.8 on the first line, I got an error and could not execute it.
I would appreciate it if you could tell me the cause.

Supplementary information (FW/tool version, etc.)

python3.9
python 3.8
sklearn
scipy
numpy
matplotlib

Trends