我昨天在我的服务器上安装了python 3.6.3(ubuntu 14.04),现在我无法运行python 2.7(在虚拟envs和'main env'上).
我一直在寻找谷歌,没有成功.
当我变红时,我试图重新安装openssl.
谁能帮我 ?我疯了.
--->每当我试图执行python脚本(或pip)时,这是消息:
*ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type …Run Code Online (Sandbox Code Playgroud)