标签:script ast temp str pre asc unp err running
一台计算机上同时安装了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):
======================
python2 -m pip install numpy==1.16.0 -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
为python2.7安装包 RuntimeError: Python version >= 3.5 required.
标签:script ast temp str pre asc unp err running
原文地址:https://www.cnblogs.com/emanlee/p/12397194.html