无法在pycharm上安装熊猫

时间:2020-08-23 16:04:21

标签: python python-3.x pandas pycharm

我正在使用python 3.8并尝试在pycharm上安装熊猫。一直在给我一个错误,谢谢!!

注意:我的解释器上下载了熊猫,但似乎无法与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

2 个答案:

答案 0 :(得分:0)

错误消息显示“文件名,目录名称或卷标签语法不正确”, 也许尝试像this post中那样重新键入命令。

答案 1 :(得分:0)

看,您的用户名Heba Maamoun之间有一个空格。尝试在Windows /用户中的用户名之间切换remove the space,然后尝试再次安装熊猫。您可以将新帐户设置为管理员,然后在当前帐户中修改名称(包括C:\ Users中的文件夹名称)。 让我知道这是否适合您吗?