我正试图在我的MacBook Air (M2,2022)上安装pwn库,但是它在为独角兽建造方向盘时失败了。我正在使用python版本3.10.6。
这是我使用的命令:没有python3 -m pip install --upgrade pwn部件的--upgrade,我仍然得到相同的错误消息。如果我用pwntools替换pwn,我仍然会得到相同的错误消息。
wtdcode在GitHub问题中说:“由于GitHub没有提供M1 CI (actions/Due映像#2187),所以还没有可用的PyPI版本。您可以自己构建它。”
所以我的问题是,我如何自己建造它?
错误信息:
Building wheel for unicorn (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
running bdist_wheel
running build
Building C extensions
error: [Errno 2] No such file or directory: '/private/var/folders/6d/85dtjcrj57173csw50tk8r300000gn/T/pip-install-o33_11sd/unicorn_530dd415f77a40418edfdec7c2d599f2/../../include/unicorn'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for unicorn
Running setup.py clean for unicorn
Successfully built psutil
Failed to build unicorn
Installing collected packages: unicorn, pyserial, pyelftools, rpyc, ropgadget, requests, python-dateutil, pysocks, psutil, pathlib2, packaging, mako, intervaltree, colored-traceback, paramiko, pwntools, pwn
Running setup.py install for unicorn ... error
error: subprocess-exited-with-error
× Running setup.py install for unicorn did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
running install
running build
Building C extensions
error: [Errno 2] No such file or directory: '/private/var/folders/6d/85dtjcrj57173csw50tk8r300000gn/T/pip-install-o33_11sd/unicorn_530dd415f77a40418edfdec7c2d599f2/../../include/unicorn'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> unicorn
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.谢谢你的帮助。
发布于 2022-11-17 18:15:39
我有一台M1 mac电脑,也有同样的问题--我也没什么用,所以我只是试着安装一个较旧版本的独角兽(如果你做了pip install unicorn==而没有指定版本,你可以列出所有版本),然后尝试不同的版本,直到其中一个成功为止。
(对我来说,这只是降级为2.0.0)
https://stackoverflow.com/questions/73819091
复制相似问题