当我尝试安装pylibnet时,我一直在互联网上查找此问题的解决方案,我想知道你们是否能够成功安装pylibnet以及如何安装pylibnet。
谢谢
root@root:/home/core2# pip install ./pylibnet-3.0-beta-rc1.tar.gz
Unpacking ./pylibnet-3.0-beta-rc1.tar.gz
Running setup.py (path:/tmp/pip-LSMFJM-build/setup.py) egg_info for package from file:///home/core/pylibnet-3.0-beta-rc1.tar.gz
Searching for libnet...
Could not locate the static library "libnet.a"
Complete output from command python setup.py egg_info:
Searching for libnet...
Could not locate the static library "libnet.a"
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 255 in /tmp/pip-LSMFJM-build
Storing debug log for failure in /root/.pip/pip.log
答案 0 :(得分:0)
尝试跑步
$ find / | grep libnet.a
或
$ locate libnet.a
如果在某处找到它然后将其移动到/usr/lib/libnet.a,因为这是pip在尝试安装pylibnet时查找的地方,例如。
$ sudo cp /usr/lib/i386-linux-gnu/libnet.a /usr/lib/libnet.a
这对我有用: - )