python-2.7 - python setup.py egg_info" 失败,错误代码 1 在 /tmp/pip-install-vdozlB/libvirt-python/
问题描述
Collecting libvirt-python==1.2.2 (from -r /requirements/requirements.txt (line 14))
Downloading https://files.pythonhosted.org/packages/b9/51/ed3a8c5573f57229399c25ff0c0066e8d93c2e31d7315afc9675cf35f6b5/libvirt-python-1.2.2.tar.gz (146kB)
Complete output from 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
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-vdozlB/libvirt-python/setup.py", line 36, in <module>
"libvirt"])
File "/usr/local/lib/python2.7/distutils/spawn.py", line 38, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/local/lib/python2.7/distutils/spawn.py", line 192, in _spawn_posix
(cmd, exit_status)
distutils.errors.DistutilsExecError: command '/usr/bin/pkg-config' failed with exit status 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-vdozlB/libvirt-python/
ERROR: Service 'django' failed to build: The command '/bin/sh -c pip install -r /requirements/dev-requirements.txt' returned a non-zero code: 1
解决方案
No package 'libvirt' found
ERROR: Service 'django' failed to build: The command '/bin/sh -c pip install -r /requirements/dev-requirements.txt' returned a non-zero code: 1
libvirt 包在 Django 系统上不负责
推荐阅读
- java - 即使在使用 UTF8 后处理 InputStreamReader 时也不会保留字符编码
- sql - Postgres中的读写操作数组与多行
- .htaccess - 页面位于
已通过 HTTPS 加载,但请求了不安全的脚本' '。此请求已被阻止;内容必须通过 HTTPS 提供 - azure - 如果我从 azure AD b2c 中的用户属性中选择电子邮件地址,则两次获取电子邮件字段
- cucumber - 如何在具有不同数据集的特征文件中按顺序运行场景
- nginx - 卡在 nginx 反向代理后面的 keycloak 和超集的重定向
- node.js - docker error 错误 fetch() 中的错误:使用 nuxt 时连接 ECONNREFUSED 并连接到 node.js
- javascript - 更改图像并为活动菜单/按钮添加类
- google-bigquery - 事件计数 session_start 就像事件计数谷歌分析视图
- python - iis 处理程序忽略“ressourcetype=file” - 如何改变这种行为?