如何解决pip 无法安装 Cufflinks_ 错误:命令出错,退出状态为 1:
我试图使用 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.
解决方法
问题是您正在尝试在 Python 2 上安装仅限 Python 3.x 的库。(->
语法仅适用于 Python 3。)
升级到 Python 3 环境(3.9 是撰写本文时的最新版本)。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。