首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法为python安装pwn包

无法为python安装pwn包
EN

Stack Overflow用户
提问于 2022-09-22 18:16:02
回答 1查看 559关注 0票数 0

我正试图在我的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版本。您可以自己构建它。”

所以我的问题是,我如何自己建造它?

错误信息:

代码语言:javascript
复制
     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.

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2022-11-17 18:15:39

我有一台M1 mac电脑,也有同样的问题--我也没什么用,所以我只是试着安装一个较旧版本的独角兽(如果你做了pip install unicorn==而没有指定版本,你可以列出所有版本),然后尝试不同的版本,直到其中一个成功为止。

(对我来说,这只是降级为2.0.0)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73819091

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档