当前位置:网站首页>Numpy download and installation

Numpy download and installation

2022-07-06 21:30:00 Hu Gang 2016

In the installation numpy Before , It must be installed first python, and numpy And python The version of is corresponding to .

numpy And python Version correspondence link

 Insert picture description here

1. Download and install python 3.10

If your computer is already installed python3.4 Later versions , Then you can use it pip Tools

python Official website

 Insert picture description here

 Insert picture description here

Remember to select Add To PATH
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

Verify the installation is successful

 Insert picture description here

2. to update pip

( No updates pip To the latest version , It is likely to cause download and installation numpy after ,import I can't find the wrong report numpy)

python -m pip install --upgrade pip

 Insert picture description here

3. Use pip3 Download and install numpy

pip3 install numpy==1.22.4 scipy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple

Be careful : Here we want to specify the download our python The version corresponds to the version numpy, The version we downloaded here is 1.22.4

 Insert picture description here

Be careful : If it gets stuck when downloading , Remember to press enter , In this way, the download speed will be restored immediately .
 Insert picture description here

4. verification numpy Installation successful

Reopen the terminal
Input

python
import numpy

 Insert picture description here
Just type in import numpy Not reported, not found modul numpy Error of , That means it's installed

原网站

版权声明
本文为[Hu Gang 2016]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061310348187.html