爲python2.7安裝包numpy RuntimeError: Python version >= 3.5 required.

一臺計算機上同時安裝了python2.7和python3.7。javascript

如今爲python2.7安裝numpy包。java

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):python

 

 ======================
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/#scipygit



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/github

======================windows

My python's version is 2.7.10, 64-bits Windows 7.

  1. Download scipy-0.18.0-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
  2. Open cmd
  3. Make sure scipy-0.18.0-cp27-cp27m-win_amd64.whl is in cmd's current directory, then type pip install scipy-0.18.0-cp27-cp27m-win_amd64.whl.

It will be successful installed.app

https://stackoverflow.com/questions/28190534/windows-scipy-install-no-lapack-blas-resources-found
======================python2.7

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/
post

=====================

開源科學計算包 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 
相關文章
相關標籤/搜索