pip is not able to install Cufflinks_ ERROR: Command errored out with exit status 1:

pip is not able to install Cufflinks_ ERROR: Command errored out with exit status 1:

我正在尝试使用 pip 安装袖扣。我正在使用这个命令“pip install cufflinks”。

我是运行命令提示符管理员

一段时间后安装失败并显示以下 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.

问题是您正在尝试在 Python 2 上安装 Python 3.x-only 库。(-> 语法是 Python仅 3 个。)

升级到 Python 3 环境(3.9 是撰写本文时的最新版本)。