简体   繁体   English

无法在 pycharm 上安装 Pandas

[英]Cant install pandas on pycharm

Im using python 3.8 and trying to install pandas on pycharm.我正在使用 python 3.8 并尝试在 pycharm 上安装 Pandas。 It keeps giving me an error, thanks in advance !它一直给我一个错误,提前致谢!

Note: i have pandas downloaded on my interpreter but cant seem to 'link it' with pychar注意:我在我的解释器上下载了熊猫,但似乎无法将它与 pychar“链接”

Here's the error code:这是错误代码:

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

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

See, there is a space between your username Heba Maamoun.看,您的用户名 Heba Maamoun 之间有一个空格。 try to remove the space between your username in Windows/users and then try to install pandas again.尝试remove the space Windows/users 中用户名之间remove the space ,然后再次尝试安装 pandas。 You can set up a new account as an administrator and modify the name (including the folder name in C:\\Users) in the current account.您可以以管理员身份设置一个新帐户并修改当前帐户中的名称(包括C:\\Users 中的文件夹名称)。 let me know if this works for you ?让我知道这对你有用吗?

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

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