zoukankan      html  css  js  c++  java
  • 为python2.7安装包numpy RuntimeError: Python version >= 3.5 required.

    一台计算机上同时安装了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:usersadmini~1appdatalocal emppip_build_Administrator umpysetup.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.

    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.

    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
    
  • 相关阅读:
    Canny边缘检测高低阈值问题
    EffectiveC++ Item25测试
    下载videolectures.net里的视频的方法
    01章 象数易理篇之一
    论文格式问题
    反序列化笔记
    什么是动爻
    EffectiveC++ Item25说的东东
    优化功能
    论文修改意见
  • 原文地址:https://www.cnblogs.com/emanlee/p/12397194.html
Copyright © 2011-2022 走看看