尝试通过自制软件和 pip 安装 pyzmq 包时遗留安装失败

问题描述 投票:0回答:0

我正在尝试通过 Homebrew 在 macOS (https://pros.cs.purdue.edu/v5/getting-started/macos.html) 上安装 PROS CLI,但我一直遇到无法解决的错误修复或找到在线解决方案(我已经尝试通过 VS 代码扩展安装 CLI,但也没有用)。

我已经完成了前面的所有步骤,但是在运行

brew install pros-cli
时出现错误:

Last 15 lines from /Users/***/Library/Logs/Homebrew/pros-cli/13.pip:
  
  exec(compile(setup_py_code, filename, "exec"))
  '"'"''"'"''"'"' % ('"'"'/private/tmp/pros-cli--pyzmq-20230401-14633-yuj94s/pyzmq-20.0.0/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record /private/tmp/pip-record-74volvcf/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/Cellar/pros-cli/3.4.1/libexec/include/site/python3.11/pyzmq
  cwd: /private/tmp/pros-cli--pyzmq-20230401-14633-yuj94s/pyzmq-20.0.0/
  Running setup.py install for pyzmq: finished with status 'error'
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pyzmq

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: python3.11 -m pip install --upgrade pip

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/purduesigbots/homebrew-pros/issues

我在网上对这个问题做了一些研究,但我发现的只是关于如何解决遗留安装失败的一般提示,没有一个对我有用。

python pip homebrew failed-installation pyzmq
© www.soinside.com 2019 - 2024. All rights reserved.