[python_tsk_00] Install numpy and scipy in Win10 via pip3

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

NumPy 安装

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值