我试着用pip安装袖扣。我正在使用这个命令“pip安装袖扣”。
我作为管理员运行命令提示符
过了一段时间,安装失败,并显示了下面的error.The错误弹出后,这一行继续。
获得制造车轮的要求.误差
我尝试过许多方法来解决这个问题,但都失败了。能帮我解决这个问题吗。
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.发布于 2021-05-20 09:17:57
问题是您试图在Python2上安装Python3.x -only库( ->语法仅为Python3)。
升级到Python3环境(3.9是撰写本文时的最新版本)。
https://stackoverflow.com/questions/67617443
复制相似问题