ImportError(No module named _md5)

ImportError: No module named _md5

Got a error on test env with python2.7.9:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ pip
Traceback (most recent call last):
File "/UBSys/local/bin/pip", line 7, in <module>
from pip import main
File "/usr/local/lib/python2.7/site-packages/pip/__init__.py", line 15, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 11, in <module>
from pip.download import path_to_url
File "/usr/local/lib/python2.7/site-packages/pip/download.py", line 5, in <module>
import hashlib
File "/usr/local/lib/python2.7/hashlib.py", line 136, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 71, in __get_builtin_constructor
import _md5
ImportError: No module named _md5

maybe openssl package not work, try:

1
yum -y install openssl openssl-devel
吴羽舒 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!