【发布时间】:2021-07-23 23:34:31
【问题描述】:
我是 Pypy 的新手,我已经使用 python 工作了几年,我决定尝试一下 pypy!但是我在安装 pandas 库时遇到了问题。我无法发布错误的完整长度,因为 StackOverflow 不会让我……但这是一个抑制版本……
我跑了:
pypy3 -m pip install pandas
结果是:
Using cached pandas-1.2.4.tar.gz (5.5 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' 'C:\Program Files (x86)\pypy3.7\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"''
cwd: None
Complete output (269 lines):
Ignoring numpy: markers 'python_version == "3.8" and platform_system != "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version == "3.8" and platform_system == "AIX"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.9"' don't match your environment
Collecting setuptools
Using cached setuptools-56.0.0-py3-none-any.whl (784 kB)
Collecting wheel
Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting Cython<3,>=0.29.21
Using cached Cython-0.29.23-py2.py3-none-any.whl (978 kB)
Collecting numpy==1.16.5
Using cached numpy-1.16.5.zip (5.1 MB)
Using legacy setup.py install for numpy, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, numpy
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GONALO~1\AppData\Local\Temp\pip-record-bkj0w_a2\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --compile --install-headers 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay\include\numpy'
cwd: C:\Users\GONALO~1\AppData\Local\Temp\pip-install-f70s2rin\numpy\
UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries blas not found in ['C:\\', 'C:\\Program Files (x86)\\pypy3.7\\libs']
NOT AVAILABLE
(..............................)
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"'; __file__='"'"'C:\\Users\\GONALO~1\\AppData\\Local\\Temp\\pip-install-f70s2rin\\numpy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\GONALO~1\AppData\Local\Temp\pip-record-bkj0w_a2\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --compile --install-headers 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay\include\numpy' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files (x86)\pypy3.7\pypy3.exe' 'C:\Program Files (x86)\pypy3.7\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\GONALO~1\AppData\Local\Temp\pip-build-env-f_kp3snm\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython>=0.29.21,<3' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system!='"'"'AIX'"'"'' 'numpy==1.16.5; python_version=='"'"'3.7'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_system=='"'"'AIX'"'"'' 'numpy; python_version>='"'"'3.9'"'"'' Check the logs for full command output.
有人可以帮忙吗?我不知道我做错了什么......非常感谢大家的关注和帮助!
【问题讨论】:
-
你可以通过轮子试一试。即首先安装wheel
pip install wheel然后运行你的命令来安装pandas。 -
@simpleApp 这对我不起作用,使用 pypy3 V7.3.7 (python 3.8.12)