[Eclipse+PyDev] How to install numpy and scipy in python

At first, when bloggers used Eclipse to write Py's t-test, they would type on cmd:
pip install numpy, pip install scipy and press Enter to load the package. After
numpy
scipy
loading successfully, they started writing t-test, but the following situation occurred: I
Cannot find the specified module
believe Someone like me, so here is a solution:
If you have loaded the package with pip install numpy, pip install scipy on cmd, then use pip uninstall numpy, pip uninstall scipy on cmd to delete the package, and then Download these two packages from the following website:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
博主的py It is version 3.7.0 (as for how to check the py version on my machine, I will explain at the end of the article), so in the above URL I downloaded numpy numpy‑1.15.1+mkl‑cp37‑cp37m‑win_amd64.whl
where cp37‑cp37m 37 corresponds to my py version 37. If your py version is 36, then download cp36‑cp36m . What you need to pay attention to is the number of bits of the machine. Mine is 64 bits. If my machine is 32 bits, then under numpy-1.15.1 + mkl-CP37-cp37m-win32.whl
PS: to the next with mkl!
1.15.1 is the version, the latest version of the blogger at that time is this

For scipy, scipy-1.1.0-cp37-cp37m-win_amd64.whl
is based on the win system
. The download path I chose is D:\Python\Scripts

After downloading, use cmd again, enter:
pip install D:/Python/Scripts/numpy-1.15.1+mkl-cp37-cp37m-win_amd64.whl, and then enter
pip install D:/Python/Scripts /scipy-1.1.0-cp37-cp37m-win_amd64.whl, the same
as above. The result is:
Successfully installed
After that, the t test is completed on Eclipse: the
OK
premise is to configure the environment variables!

View the py version:
enter python --version on cmd

Guess you like

Origin blog.csdn.net/HellHellNo/article/details/115370998