【发布时间】:2016-09-04 14:36:59
【问题描述】:
我一直在尝试安装 pybfd 模块,但到目前为止没有任何效果。
尝试了以下方法:
pip install pybfd 返回error: option --single-version-externally-managed not recognized。快速搜索后,我发现pip 的--egg 选项似乎可以工作,说安装成功但是当我尝试运行我的代码时ImportError: No module named pybfd.bfd
easy_install pybfd 也会返回错误:
Writing /tmp/easy_install-oZUgBf/pybfd-0.1.1/setup.cfg
Running pybfd-0.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oZUgBf/pybfd-0.1.1/egg-dist-tmp-gWwhoT
[-] Error : unable to determine correct include path for bfd.h / dis-asm.h
No eggs found in /tmp/easy_install-oZUgBf/pybfd-0.1.1/egg-dist-tmp-gWwhoT (setup script problem?)
对于最后一次尝试,我从 GitHub 下载了 pybfd 存储库并运行了安装脚本:[-] Error : unable to determine correct include path for bfd.h / dis-asm.h
有没有人知道是什么导致了这一切以及如何实际安装模块?
【问题讨论】:
标签: python pip easy-install