【发布时间】:2020-12-12 09:24:28
【问题描述】:
我正在使用 python 3.8 并尝试在 pycharm 上安装 pandas。它总是给我一个错误,提前谢谢!
注意:我在解释器上下载了 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
【问题讨论】:
-
你可以试试this way?
-
我就是这样做的,pycharm给了我上面提到的错误
-
你可以试试这个吗:stackoverflow.com/questions/40060353/… 用户似乎有类似的问题
-
您是否尝试过使用命令提示符手动 pip install pandas?
-
我确实手动安装了它,但由于某种原因它仍然没有在 pycharm 中注册。知道如何解决这个问题吗?
标签: python python-3.x pandas pycharm