参考资料:http://blog.csdn.net/xia7139/article/details/9113433
相信用过python的同学都碰到过利用pip install的时候 发现安装程序找不到该包名的安装包,因为python包名不一定和库名完全相同。那么 如何根据关键词查询包名?
以安装lxml为例:
1. 先用 apt-cache search找到软件的准确名字
apt-cache search lxml
结果:
inkscape - vector-based drawing program
python-lxml - pythonic binding for the libxml2 and libxslt libraries
python-lxml-dbg - pythonic binding for the libxml2 and libxslt libraries (debug extension)
python-lxml-doc - pythonic binding for the libxml2 and libxslt libraries (documentation)
python3-lxml - pythonic binding for the libxml2 and libxslt libraries
python3-lxml-dbg - pythonic binding for the libxml2 and libxslt libraries (debug extension)
xml-core - XML infrastructure and XML catalog file support
python-okasha - trivial WSGI w