Package libvirt was not found in the pkg-config search path
来源:互联网 发布:cl.4z3.pw index.php 编辑:程序博客网 时间:2024/05/21 04:00
关于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?m=9d78d513d98112fe01bec1291a16a638420497624c938b5539c39339d6371a564717bfe66135107587983b3b57b8492db1ac217246457ae08cc8f90884ee85295f9f2742671df6104f8f4df49e5125b061c709a9fe43f0ba8170c0e888c798140dc509433cc2e78a291d098f2ab5033194e6ce1e4f0c56aded4734a2066a7adf721aed03aea12f305cd1b2861c0ad42aa62650c0ef74ad3e10b615b31f6d5b17eb51ee49042432e24520e8444a5ed4b403&p=98769a4786cc42ae58a6dd234264a5&newp=882a9644d6870ee00be296284e5980231610db2151d7d7146b82c825d7331b001c3bbfb42324130ed8c57e6407ac4b5aebf73771320625a3dda5c91d9fb4c57479cc687b&user=baidu&fm=sc&query=Package+libvirt+was+not+found+in+the+pkg%2Dconfig+search+path&qid=c6e7117f000307cb&p1=4
关键的一句You probably need libvirt-dev(el) package installed.
,然后执行yum install -y libvirt-devel
就没有问题了
错误提示如下:
Running command python setup.py egg_info Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found running egg_info creating pip-egg-info/libvirt_python.egg-info writing pip-egg-info/libvirt_python.egg-info/PKG-INFO writing top-level names to pip-egg-info/libvirt_python.egg-info/top_level.txt writing dependency_links to pip-egg-info/libvirt_python.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt' file build/libvirt.py (for module libvirt) not found file build/libvirt_qemu.py (for module libvirt_qemu) not found reading manifest file 'pip-egg-info/libvirt_python.egg-info/SOURCES.txt' writing 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.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found running install running build /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing `libvirt.pc' to the PKG_CONFIG_PATH environment variable No package 'libvirt' found error: command '/usr/bin/pkg-config' failed with exit status 1
- Package libvirt was not found in the pkg-config search path
- npm 安装 canvas报错:package cairo was not found in the pkg-config search path
- 解决Package fuse was not found in the pkg-config search path.
- Package opencv was not found in the pkg-config search path
- Package rdkafka was not found in the pkg-config search path.
- opencv was not found in the pkg-config search path
- 对于 Package gstreamer-0.10.23 was not found in the pkg-config search path. 的问题的解决
- 对于 Package gstreamer-0.10.23 was not found in the pkg-config search path. 的问题的解决
- RedHat 安装w3af,安装pyopenssl时总会出现Package libffi was not found in the pkg-config search path错误
- RedHat 安装w3af,安装pyopenssl时总会出现Package libffi was not found in the pkg-config search path错误
- node.js was not found in the default path
- 解决tomcat启动出现in production environments was not found on the java.library.path:xxx
- ERROR: libass not found using pkg-config
- ERROR: x265 not found using pkg-config
- was not found on the java.library.path
- the zipalign tool was not found in the sdk
- the zipalign tool was not found in the sdk
- the zipalign tool was not found in the sdk
- c程序
- c++第五次上机实验
- Zephyr程序初探(5):thread程序
- hashMap原理
- laravel中的表单Form的使用
- Package libvirt was not found in the pkg-config search path
- Qt之QImageWriter
- vue之自定义指令
- php--条件语句
- mybatis 的懒加载原理
- JavaScript中call,apply,bind方法的总结。
- 模拟XML文件信息的读取并创建实例
- 51单片机头文件reg51.h详解
- 小白书字母重排