我正在尝试为 python 安装 pandas,但我不断收到很长的错误消息。所以我尝试了以下方法:
- 卸载并重新安装 python 版本 3.10.0
- 通过命令提示符导航到目录来安装 pandas
C:\Users\用户名\AppData\Local\Programs\Python\Python310\Scripts
并运行 pip install pandas
- 我也尝试过使用 pip3 install pandas
- 我尝试安装以前版本的 pandas 但仍然遇到相同的错误
这是错误:
Microsoft Windows [Version 10.0.19042.1288]
(c) Microsoft Corporation. All rights reserved.
C:\Users\motaz>cd .C:\Users\motaz\AppData\Local\Programs\Python\Python310\Scripts
The filename, directory name, or volume label syntax is incorrect.
C:\Users\motaz>cd C:\Users\motaz\AppData\Local\Programs\Python\Python310\Scripts
C:\Users\motaz\AppData\Local\Programs\Python\Python310\Scripts>pip install pandas
Collecting pandas
Using cached pandas-1.3.3.tar.gz (4.7 MB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\motaz\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\motaz\AppData\Local\Temp\pip-standalone-pip-_jyoyc51\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\motaz\AppData\Local\Temp\pip-build-env-qf94j_f0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=51.0.0' wheel 'Cython>=0.29.21,<3' 'numpy==1.17.3; python_version=='"'"'3.7'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.18.3; python_version=='"'"'3.8'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.9'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"''
cwd: None
Complete output (234 lines):
实际上,Python 3.10 已启用pandas
几天之前。但是,最后一个版本 (1.3.3) 于 9 月 12 日发布。
您必须等待新版本的 Pandas 才能使用 Python 3.10 安装它。在此之前,您可以继续使用较低版本的 Python(就像一些用户建议的那样)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)