No module named pkg_resources解决办法

问题描述

1
2
3
4
5
6
7
$ ceph-deploy --version
Traceback (most recent call last):
File "/usr/bin/ceph-deploy", line 18, in <module>
from ceph_deploy.cli import main
File "/usr/lib/python2.7/site-packages/ceph_deploy/cli.py", line 1, in <module>
import pkg_resources
ImportError: No module named pkg_resources

解决办法

1
2
$ wget https://bootstrap.pypa.io/ez_setup.py -O - | python
$ curl https://bootstrap.pypa.io/ez_setup.py | python

参考

https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources

坚持原创技术分享,您的支持将鼓励我继续创作!
0%