当我尝试安装 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
尝试运行
$ 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
这对我有用:-)