我试着通过pycharm安装pandas,但它说,然后我尝试使用numpy,但它产生了同样的问题:
Collecting numpy
Using cached numpy-1.25.0.tar.gz (10.4 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[40 lines of output]
Traceback (most recent call last):
File "C:\Users\kirit\PycharmProjects\pythonProject3\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
main()
File "C:\Users\kirit\PycharmProjects\pythonProject3\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\kirit\PycharmProjects\pythonProject3\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
File "C:\Users\kirit\PycharmProjects\pythonProject3\venv\lib\python3.10\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 77, in _build_backend
obj = import_module(mod_path)
File "C:\msys64\mingw64\lib\python3.10\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 887, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\kirit\AppData\Local\Temp\pip-build-env-1b4ajfja\overlay\lib\python3.10\site-packages\setuptools\__init__.py", line 242, in <module>
monkey.patch_all()
File "C:\Users\kirit\AppData\Local\Temp\pip-build-env-1b4ajfja\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 99, in patch_all
patch_for_msvc_specialized_compiler()
File "C:\Users\kirit\AppData\Local\Temp\pip-build-env-1b4ajfja\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 162, in patch_for_msvc_specialized_compiler
patch_func(*msvc9('find_vcvarsall'))
File "C:\Users\kirit\AppData\Local\Temp\pip-build-env-1b4ajfja\overlay\lib\python3.10\site-packages\setuptools\monkey.py", line 149, in patch_params
mod = import_module(mod_name)
File "C:\msys64\mingw64\lib\python3.10\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 887, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\kirit\AppData\Local\Temp\pip-build-env-1b4ajfja\overlay\lib\python3.10\site-packages\setuptools\_distutils\msvc9compiler.py", line 295, in <module>
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip
字符串
他们告诉我在终端复制这个命令:
C:\Users\kirit\PycharmProjects\pythonProject3\venv\bin\activate.bat
C:\Users\kirit\PycharmProjects\pythonProject3\venv\bin\python.exe C:/Program Files/JetBrains/PyCharm Community Edition 2023.1.3/plugins/python-ce/helpers/packaging_tool.py install numpy
型
我试过了,但它屈服了:
C:\Users\kirit\PycharmProjects\pythonProject3\venv\bin\python.exe: can't open file 'C:\\Program': [Errno 2] No such file or directory.
型
我用他们提供的命令检查了我的pip,它目前是最新版本(23.1.2)。我不知道该怎么办,谁能帮帮我?我最大的感谢你们。
2条答案
按热度按时间jqjz2hbq1#
编辑:尝试以管理员身份打开pycharm
嗨,这个问题的发生是因为pycharm安装在
Program Files
,其中有一个空间后“程序”,并试图调用C:/Program Files/JetBrains/PyCharm...
命令,一个错误是导致说,它无法找到目录C:\\Programm
我曾经有这个错误,我发现的解决方案是通过控制台安装依赖项.它可能不那么方便,但是这样你将确定发生了什么,调用了什么命令az31mfrm2#
我只是通过选择另一个解释器来修复它(意外地,我爱我的运气),起初我选择了mingw 64。我会把它贴在这里,这样如果有人有同样的问题,它可能会帮助他们一点。谢谢你们!
编辑:问题是由解释器x1c 0d1x的路径中的空格引起的