一台計算機上同時安裝了python2.7和python3.7。
現在為python2.7安裝numpy包。
C:\Python27>python2 -m pip install numpy -i http://mirrors.aliyun.com/pypi/simple/
Downloading/unpacking numpy
Downloading numpy-1.18.1.zip (5.4MB): 5.4MB downloaded
Running setup.py egg_info for package numpy
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\admini~1\appdata\local\temp\pip_build_Administrator\numpy\setup.py", line 32, in <module>
raise RuntimeError("Python version >= 3.5 required.")
RuntimeError: Python version >= 3.5 required.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
======================
The last version of NumPy to support Python 2.7 is NumPy 1.16.x. The last SciPy version to do so is SciPy 1.2.x. The first release of NumPy to support Python 3.x was NumPy 1.5.0. Python 3 support in SciPy was introduced in SciPy 0.9.0.
https://github.com/scipy/scipy/releases
python2 -m pip install scipy==1.2.1 -i http://mirrors.aliyun.com/pypi/simple/
python2 -m pip install scipy==1.2.2 -i http://mirrors.aliyun.com/pypi/simple/
python2 -m pip install scipy==1.2.3 -i http://mirrors.aliyun.com/pypi/simple/
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
https://pandas.pydata.org/
python2 -m pip install pandas==0.22.0 -i http://mirrors.aliyun.com/pypi/simple/
https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.5.0/windows/
python2 -m pip install matplotlib==1.5.3 -i http://mirrors.aliyun.com/pypi/simple/
pylab 模塊是一款由python提供的可以繪制二維,三維數據的工具模塊,其中包括了繪圖軟件包 matplotlib,其可以生成matab繪圖庫的圖像。
python2 -m pip install pylab -i http://mirrors.aliyun.com/pypi/simple/
======================
My python's version is 2.7.10, 64-bits Windows 7.
- Download
scipy-0.18.0-cp27-cp27m-win_amd64.whl
fromhttp://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
- Open
cmd
- Make sure
scipy-0.18.0-cp27-cp27m-win_amd64.whl
is incmd
's current directory, then typepip install scipy-0.18.0-cp27-cp27m-win_amd64.whl
.
It will be successful installed.
https://stackoverflow.com/questions/28190534/windows-scipy-install-no-lapack-blas-resources-found
======================
python2 -m pip install numpy==1.16.0 -i http://mirrors.aliyun.com/pypi/simple/
python2 -m pip install pylab -i http://mirrors.aliyun.com/pypi/simple/
python2 -m pip install scipy -i http://mirrors.aliyun.com/pypi/simple/
=====================
開源科學計算包 NumPy 系統是 Python 的一種開源的數值計算擴展,該工具可用來存儲和處理大型矩陣。NumPy 1.16.0 支持 Python 2.7 和 3.5-3.7,不再支持 3.4。
NumPy 以后發布的版本將只支持 Python 3。
======================
如果在同一台機器上有兩個版本的Python,則應明確指定您的pip版本:
#Find all versions available: python2.7 -m pip install scikit-image== #Then install your prefer/latest version from the list above. Example: python2.7 -m pip install scikit-image==0.14.2