ID = python_tsk_00
Task
Status: Got this error ModuleNotFoundError: No module named 'numpy'
Task: To install numpy
and scipy
in Win10.
Action
Use pip3 to make it, and referenced to this link
This is the step-by-step operation record:
Step1: Install and check python
Visit Python.org and choose latest or target version.
I chose: Windows x86-64 executable installer, python-3.7.7-amd64.exe
Step2: Add Python path to systematic parameter
For me, the path of python.exe
is C:\Users\Admin\AppData\Local\Programs\Python\Python37
For more details, open this link
After adding python path to systematic parameters, open the CMD terminal to check python version:
python --version
I got Python 3.7.7
Step3: Install pip
Visit pypi to download the installation package.
Just choose xxx.tar.gz, this is usable both for Linux and Windows.
Unzip pip-20.2.3.tar.gz
and open CMD terminal:
Go to directory: cd Downloads\dist\pip-20.2.3
and start installation:
$ python setup.py install
...
Installed c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\pip-20.2.3-py3.7.egg
Processing dependencies for pip==20.2.3
Finished processing dependencies for pip==20.2.3
For me, the path of pip
is C:\Users\Admin\AppData\Local\Programs\Python\Python37\Scripts\
Step4: Install numpy, scipy, and matplotlib
Command: pip3 install numpy scipy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
Result
numpy
and scipy
were installed.
C:\Users\Admin>pip3 list
Package Version
--------------- ---------
certifi 2020.6.20
cycler 0.10.0
kiwisolver 1.2.0
matplotlib 3.3.1
numpy 1.19.2
Pillow 7.2.0
pip 20.2.3
pyparsing 2.4.7
python-dateutil 2.8.1
scipy 1.5.2
setuptools 41.2.0
six 1.15.0