ImportError: No module named pkg_resources解决方法

使用ceph-deploy命令是出现如下错误:

[root@ceph-node1 ceph]# ceph-deploy new ceph-node1
Traceback (most recent call last):
  File "/usr/bin/ceph-deploy", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

解决方法:

# yum install python2-pip.noarch -y

参考原文:

https://blog.51cto.com/u_14047021/2314921

posted on 2022-03-28 16:45  阿小杜  阅读(893)  评论(0编辑  收藏  举报