我只是做了全新安裝anaconda2和暢達總是拋出這個錯誤:Anaconda2:不能導入名稱爲md5
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/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 "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/home/niid/anaconda2/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/home/niid/.bin/conda", line 11, in <module>
sys.exit(main())
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 182, in main
return conda_exception_handler(_main, *args)
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 644, in conda_exception_handler
return handle_exception(e)
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 634, in handle_exception print_unexpected_error_message(e)
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 596, in print_unexpected_error_message
stderrlogger.info(get_main_info_str(get_info_dict()))
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/cli/main_info.py", line 162, in get_info_dict
from ..connection import user_agent
File "/home/niid/anaconda2/lib/python2.7/site-packages/conda/connection.py", line 12, in <module>
from requests import Session, __version__ as REQUESTS_VERSION
File "/home/niid/anaconda2/lib/python2.7/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/home/niid/anaconda2/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/home/niid/anaconda2/lib/python2.7/site-packages/urllib3/connectionpool.py", line 29, in <module>
from .connection import (
File "/home/niid/anaconda2/lib/python2.7/site-packages/urllib3/connection.py", line 39, in <module>
from .util.ssl_ import (
File "/home/niid/anaconda2/lib/python2.7/site-packages/urllib3/util/__init__.py", line 6, in <module>
from .ssl_ import (
File "/home/niid/anaconda2/lib/python2.7/site-packages/urllib3/util/ssl_.py", line 7, in <module>
from hashlib import md5, sha1, sha256
ImportError: cannot import name md5
此錯誤的第一個實例時,暢達安裝過程中被稱爲反應。
它可以通過手動調用暢達或致電
$HOME/anaconda2/python -c "import md5"
我無法找到到目前爲止,有關這一問題的任何修補程序進行復制。這是很奇怪的,因爲我只是做了
rm -rf $HOME/anaconda2
,然後做一個乾淨的重新安裝。
編輯:
的問題似乎是隻與蟒蛇5.我重新安裝了蟒蛇4.4.0,不會出現問題。我會嘗試anaconda論壇。
您是否嘗試過下載新副本?我認爲安裝程序會在安裝過程中檢查文件的完整性,但我也會手動檢查安裝程序的文件散列,並確保您具有文件完整性。哈希在這裏。 '的https:// repo.continuum.io /存檔/'。 – 16num
是的,我從回購下載了一份新的副本。 Anaconda和Miniconda都會拋出同樣的錯誤。 – idf
很奇怪。我現在沒有想法,但可能會發布操作系統和版本。 – 16num