setuptools hashlib-Python2.7.9安装setuptools-0.6c11出错

问题描述

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

以上是问题呈现。

解决方案

//try below command

 sudo apt-get install python-setuptools

解决方案二:

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

时间: 2024-08-30 04:23:28

setuptools hashlib-Python2.7.9安装setuptools-0.6c11出错的相关文章

python安装setuptools步骤详解

Python中当需要安装第三方python包时,可能会用到easy_install命令.easy_install是由PEAK(Python Enterprise Application Kit)开发的setuptools包里带的一个命令,所以使用easy_install实际上是在调用setuptools来完成安装模块的工作. 为了方便后续安装各种第三方python包,需要先安装setuptools. 安装setuptools的话,下面一条简单的命令就可以搞定,脚本会自动为你安装适合你系统的对应版

python-Python3.5.1安装setuptools 出错

问题描述 Python3.5.1安装setuptools 出错 解决方案 #!/usr/bin/env python """ Setuptools bootstrapping installer. Run this script to install or upgrade setuptools. """ import os import shutil import sys import tempfile import zipfile import

Python 安装 setuptools 和 pip

简述 setuptools 和 pip 都是管理 Python 包的工具,可以从 PyPI 上自动下载,安装包. 简述 安装 setuptools 安装 pip 错误处理 更多参考 安装 setuptools 进入 setuptools 下载页面,下载 setuptools 源码包. # wget https://pypi.python.org/packages/6f/10/5398a054e63ce97921913052fde13ebf332a3a4104c50c4d7be9c465930e/

freebsd-freeBSD中不连网安装postgresql9.0

问题描述 freeBSD中不连网安装postgresql9.0 在虚拟机中安装了freeBSD,安装postgresql9.0时需要使用gmake,安装gmake时需连接互联网安装,我在网上下载了gmake的压缩包,但是怎么也装不上,提示没有gmake这个命令,要怎么装才是正确的方法呢

Windows XP系统下安装Vmware6.0虚拟机

虚拟机,顾名思义就是虚拟出来的电脑,这个虚拟出来的电脑和真实的电脑几乎完全一样,所不同的是他的硬盘是在一个文件中虚拟出来的,所以你可以随意修改虚拟机的设置,而不用担心对自己的电脑造成损失.虚拟机中有自己的CPU.主板.内存.BIOS.显卡.硬盘.光驱.软驱.网卡.声卡.串口.并口和USB等设备. 虚拟机简介 一.虚拟机的简介 虚拟机,顾名思义就是虚拟出来的电脑,这个虚拟出来的电脑和真实的电脑几乎完全一样,所不同的是他的硬盘是在一个文件中虚拟出来的,所以你可以随意修改虚拟机的设置,而不用担心对自己

在windows iis5下安装php4.0+mysql之我见

我接触php有段时间了,一直在公司配置好的环境下开发,总想试试自己安装一下,终于我的同学给了我这个机会.现在我将自己根据本站文章再发表一下我的看法和一点补充.   一,安装mysql.    首先下载一个软件包是必须的,然后将其解压到你的的临时目录,点击安装程序,根据程序中的说明提示安装完.     第2步,根据本站的文章应在"开始"---"运行"中键如"c:\mysql\bin\mysqld-nt - install"来运行程序,再在"

编译安装php5.2.0时出错的解决方案

编译安装php5.2.0时出错解决方案 1.错误信息...................如下 checking for mcrypt support... no checking for mhash support... no checking whether to include mime_magic support... no checking for MING support... no checking for mSQL support... no checking for MSSQL

Win8安装UG9.0程序组件时安装出错怎么办

  在安装UG9.0程序软件时,安装出错,并提示:UGII_TMP_DIR 被设为一个有无效(非ASCII)字符的目录.怎么回事呢? 步骤如下: 一.原因分析: Win8帐户名肯定用的中文名,才会出现这此的问题,UG系统安装的时候有些目录会自动定义到你帐户名下的目录,而个目录中含有中文名,UG不识别,所以才会出错. 二.解决办法: 方法一:新建一个英文名用户再进行安装; 方法二: 1.在C盘新建一个TEMP名的文件夹; 2.然后打开环境变量(不知道哪里打开的话自己百度,这个是电脑基础知识),在用

win7如何安装vc6.0

        win7如何安装vc6.0 方法/步骤 下载完成后,文件是一个iso的压缩文件,最好不要用Daemon Tools等虚拟光驱软件打开.直接用winrar解压即可! 解压后,打开文件夹,运行setup.exe安装程序.在弹出的兼容性提示对话框中选择"是"! 在安装向导中选择"Next" 在软件许可对话框中选择"accept".然后继续"next". 在product's ID(产品id)中全部输入1即可,comp