繁体   English   中英

Libvirt-python package 安装 VS Code Win10/11

[英]Libvirt-python package install VS Code Win10/11

有没有人在Win10/11下成功安装libvirt-python package。

PS C:\> pip install libvirt-python
Collecting libvirt-python
  Using cached libvirt-python-8.10.0.tar.gz (240 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: libvirt-python
  Building wheel for libvirt-python (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [47 lines of output]
      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 bdist_wheel
      running build
      running build_py
      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

有没有办法在MS下安装?

没有找到 package 'libvirt'

我在 github 中参考了这个答案

libvirt是一个用于虚拟化的库。 Infrakit 依赖于libvirt插件,它可以通过 Linux 上的 KVM 提供实例。

在 Mac 上,您可以使用命令brew install libvirt libvirt

这是另一个类似的问题,您可以阅读它以获取更多信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM