我试图使用 pip 安装袖扣。我正在使用这个命令“pip install cufflinks”。
我以管理员身份运行命令提示符
一段时间后,安装失败并显示以下错误。此行之后会弹出错误。
获取构建轮子的要求...错误
我尝试了很多方法来解决这个问题,但都失败了。有人可以帮我解决这个问题。
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\hoyyoth\appdata\local\temp\tmpyv0rcx'
cwd: c:\users\hoyyoth\appdata\local\temp\pip-install-yixwp1\pywinpty
Complete output (15 lines):
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module>
main()
File "c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 108, in get_requires_for_build_wheel
backend = _build_backend()
File "c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 86, in _build_backend
obj = import_module(mod_path)
File "c:\python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "c:\users\hoyyoth\appdata\local\temp\pip-build-env-wxu_ny\overlay\Lib\site-packages\maturin\__init__.py", line 31
def get_config() -> Dict[str, str]:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'c:\users\hoyyoth\appdata\local\temp\tmpyv0rcx' Check the logs for full command output.