繁体   English   中英

无法在 pycharm 上安装 Pandas

[英]Cant install pandas on pycharm

我正在使用 python 3.8 并尝试在 pycharm 上安装 Pandas。 它一直给我一个错误,提前致谢!

注意:我在我的解释器上下载了熊猫,但似乎无法将它与 pychar“链接”

这是错误代码:

Collecting pandas
Using cached https://files.pythonhosted.org/packages/b1/1f/afb5cad013e8888053f6524849cc3df4bb83dfcab59485f10bf50016d4f8/pandas-1.1.1.tar.gz
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
Complete output from command "C:\Users\Heba 
Maamoun\PycharmProjects\untitled\venv\Scripts\python.exe" "C:\Users\Heba                      
Maamoun\PycharmProjects\untitled\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip" install 
--ignore-installed --no-user --prefix "C:\Users\Heba Maamoun\AppData\Local\Temp\pip- 
build-env-887ebusc\overlay" --no-warn-script-location --no-binary :none: --only-binary 
:none: -i https://pypi.org/simple -- setuptools wheel Cython>=0.29.16,<3 "numpy==1.15.4; 
python_version=='3.6' and platform_system!='AIX'" "numpy==1.15.4; python_version=='3.7' 
and platform_system!='AIX'" "numpy==1.17.3; python_version>='3.8' and 
platform_system!='AIX'" "numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'" 
"numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'" "numpy==1.17.3; 
python_version>='3.8' and platform_system=='AIX'":
Ignoring numpy: markers 'python_version == "3.6" 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.6" 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
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/c3/a9/5dc32465951cf4812e9e93b4ad2d314893c2fa6d5f66ce5c057af6e76d85/setuptools-49.6.0-py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/a7/00/3df031b3ecd5444d572141321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl
Collecting Cython<3,>=0.29.16
Using cached https://files.pythonhosted.org/packages/ad/4b/9e53bcce3c959fd0db143626e573210bba07be810fe8d7296373948c4183/Cython-0.29.21-py2.py3-none-any.whl
Collecting numpy==1.17.3
Using cached https://files.pythonhosted.org/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip
Installing collected packages: setuptools, wheel, Cython, numpy
Running setup.py install for numpy: started
  Running setup.py install for numpy: still running...
  Running setup.py install for numpy: finished with status 'done'
 Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:'


----------------------------------------

 Command ""C:\Users\Heba Maamoun\PycharmProjects\untitled\venv\Scripts\python.exe" "C:\Users\Heba Maamoun\PycharmProjects\untitled\venv\lib\site-packages\pip-19.0.3-py3.8.egg\pip" install --ignore-installed --no-user --prefix "C:\Users\Heba Maamoun\AppData\Local\Temp\pip-build-env-887ebusc\overlay" --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython>=0.29.16,<3 "numpy==1.15.4; python_version=='3.6' and platform_system!='AIX'" "numpy==1.15.4; python_version=='3.7' and platform_system!='AIX'" "numpy==1.17.3; python_version>='3.8' and platform_system!='AIX'" "numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'" "numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'" "numpy==1.17.3; python_version>='3.8' and platform_system=='AIX'"" failed with error code 1 in None

错误消息说“文件名、目录名或卷标语法不正确”,也许可以尝试像这篇文章一样重新输入命令。

看,您的用户名 Heba Maamoun 之间有一个空格。 尝试remove the space Windows/users 中用户名之间remove the space ,然后再次尝试安装 pandas。 您可以以管理员身份设置一个新帐户并修改当前帐户中的名称(包括C:\\Users 中的文件夹名称)。 让我知道这对你有用吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM