Airuan01
Airuan01
采纳率0%
2015-05-07 02:30 阅读 4.4k

Python2.7.9安装setuptools-0.6c11出错

running install
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
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
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 sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in
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 sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in
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 sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in
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 sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 147, in
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 sha512
Traceback (most recent call last):
File "setup.py", line 94, in
scripts = scripts,
File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/setuptools-0.6c11/setuptools/command/install.py", line 76, in run
self.do_egg_install()
File "/setuptools-0.6c11/setuptools/command/install.py", line 85, in do_egg_install
easy_install = self.distribution.get_command_class('easy_install')
File "/setuptools-0.6c11/setuptools/dist.py", line 395, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "/setuptools-0.6c11/pkg_resources.py", line 1954, in load
entry = __import
(self.module_name, globals(),globals(), ['__name__'])
File "/setuptools-0.6c11/setuptools/command/easy_install.py", line 21, in
from setuptools.package_index import PackageIndex, parse_bdist_wininst
File "/setuptools-0.6c11/setuptools/package_index.py", line 10, in
from md5 import md5
File "/usr/local/lib/python2.7/md5.py", line 10, in
from hashlib import md5
ImportError: cannot import name md5

以上是问题呈现。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • u011767611 Landpack 2015-05-07 04:14

    //try below command

     sudo apt-get install python-setuptools
    
    点赞 评论 复制链接分享
  • Airuan01 Airuan01 2015-05-07 06:48

    我试了下,不行。有说是没有openssl的问题,但我装了openssl。不知道是怎么回事。

    点赞 评论 复制链接分享

相关推荐