多彩编程 多彩编程MZPH · CODE BLOG
ARTICLE DETAIL

文章详情

深耕前端与后端开发技术的一线实战笔记与踩坑复盘。

Package libvirt was not found in the pkg-config search path

Package libvirt was not found in the pkg-config search path 关于pip安装 libvirt-python的时候提示Package libvirt was not found in the pkg-config search path的问题解决方法1、一开始以为是网络原因尝试不同的版本也不行【未果】2、在网上查阅资料后说是缺少libvirt.py这个文件建议从安装包中拷贝过来但是这个是pip安装不同于其它的开源软件所以这个也行不通可以参考以下链接http://cgwxyz.blog.163.com/blog/static/262806020105307929424/3、直到看到有网友说是需要安装libvirt-devel之后才悄然大悟其实安装完这个包之后就有/usr/lib64/pkgconfig/libvirt.pc这个文件了http://cache.baiducontent.com/c?m9d78d513d98112fe01bec1291a16a638420497624c938b5539c39339d6371a564717bfe66135107587983b3b57b8492db1ac217246457ae08cc8f90884ee85295f9f2742671df6104f8f4df49e5125b061c709a9fe43f0ba8170c0e888c798140dc509433cc2e78a291d098f2ab5033194e6ce1e4f0c56aded4734a2066a7adf721aed03aea12f305cd1b2861c0ad42aa62650c0ef74ad3e10b615b31f6d5b17eb51ee49042432e24520e8444a5ed4b403p98769a4786cc42ae58a6dd234264a5newp882a9644d6870ee00be296284e5980231610db2151d7d7146b82c825d7331b001c3bbfb42324130ed8c57e6407ac4b5aebf73771320625a3dda5c91d9fb4c57479cc687buserbaidufmscqueryPackagelibvirtwasnotfoundinthepkg%2Dconfigsearchpathqidc6e7117f000307cbp14关键的一句You probably need libvirt-dev(el) package installed.然后执行yum install -y libvirt-devel就没有问题了错误提示如下Running command python setup.py egg_infoPackage libvirt was not found in the pkg-config search path.Perhaps you should add the directory containing libvirt.pcto the PKG_CONFIG_PATH environment variableNo package libvirt foundPackage libvirt was not found in the pkg-config search path.Perhaps you should add the directory containing libvirt.pcto the PKG_CONFIG_PATH environment variableNo package libvirt foundrunning egg_infocreating pip-egg-info/libvirt_python.egg-infowriting pip-egg-info/libvirt_python.egg-info/PKG-INFOwriting top-level names to pip-egg-info/libvirt_python.egg-info/top_level.txtwriting dependency_links to pip-egg-info/libvirt_python.egg-info/dependency_links.txtwriting manifest file pip-egg-info/libvirt_python.egg-info/SOURCES.txtfile build/libvirt.py (for module libvirt) not foundfile build/libvirt_qemu.py (for module libvirt_qemu) not foundreading manifest file pip-egg-info/libvirt_python.egg-info/SOURCES.txtwriting manifest file pip-egg-info/libvirt_python.egg-info/SOURCES.txt... ...Package libvirt was not found in the pkg-config search path.Perhaps you should add the directory containing libvirt.pcto the PKG_CONFIG_PATH environment variableNo package libvirt foundPackage libvirt was not found in the pkg-config search path.Perhaps you should add the directory containing libvirt.pcto the PKG_CONFIG_PATH environment variableNo package libvirt foundrunning installrunning build/usr/bin/pkg-config --print-errors --atleast-version0.9.11 libvirtPackage libvirt was not found in the pkg-config search path.Perhaps you should add the directory containing libvirt.pcto the PKG_CONFIG_PATH environment variableNo package libvirt founderror: command /usr/bin/pkg-config failed with exit status 1————————————————版权声明本文为CSDN博主「秋雪夜雨寒」的原创文章遵循CC 4.0 BY-SA版权协议转载请附上原文出处链接及本声明。原文链接https://blog.csdn.net/longyinyushi/article/details/72567160
返回列表