![错误:安装 libvirt 软件包后无法在 RHEL 7.3 上初始化 NSS 库](https://linux22.com/image/117107/%E9%94%99%E8%AF%AF%EF%BC%9A%E5%AE%89%E8%A3%85%20libvirt%20%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%90%8E%E6%97%A0%E6%B3%95%E5%9C%A8%20RHEL%207.3%20%E4%B8%8A%E5%88%9D%E5%A7%8B%E5%8C%96%20NSS%20%E5%BA%93.png)
我想在 RHEL 7.3 KVM 主机上安装 libvirt 和 libguestfs-tools。但我面临以下问题:
[root@localhost ~]# yum install -y libvirt
error: Failed to initialize NSS library
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
cannot import name ts
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Aug 2 2016, 04:20:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
我的Python版本是2.7.5。