为什么pip失败与坏的md5哈希的包? [英] Why does pip fail with bad md5 hash for package?

查看:205
本文介绍了为什么pip失败与坏的md5哈希的包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在virtualenv中安装Django软件包。我在一台新电脑(OSX 10.8.2)上。我通过easy_install安装了virtualenv。激活了virtualenv,我跑了:

I'm trying to install Django package in a virtualenv. I'm on a new computer (OSX 10.8.2). I installed virtualenv via easy_install. With the virtualenv activated, I ran:

(pyenv)$ pip install Django
Downloading/unpacking Django
  Downloading Django-1.5.1.tar.gz (8.0MB): 2.0MB downloaded
  Hash of the package https://pypi.python.org/packages/source/D/Django/Django-1.5.1.tar.gz#md5=7465f6383264ba167a9a031d6b058bff (from https://pypi.python.org/simple/Django/) (<md5 HASH object @ 0x108453df0>) doesn't match the expected hash 7465f6383264ba167a9a031d6b058bff!
Bad md5 hash for package https://pypi.python.org/packages/source/D/Django/Django-1.5.1.tar.gz#md5=7465f6383264ba167a9a031d6b058bff (from https://pypi.python.org/simple/Django/)

即使我删除了virtualenv并重新开始,也会发生这种情况。在过去的几个小时里,我再一次尝试,总是发生。任何建议?

This happens even if I delete virtualenv and start over. I've tried again repeatedly over the past few hours, it always happens. Any suggestions?

推荐答案

如果只是这个包无法安装,您可以手动下载tarball,然后使用pip从该文件安装它。 Django下载站点具有可以手动验证的校验和。我不使用osx,但是可能这样会有所帮助:

If it's just this package that you can't get to install, you could download the tarball manually, and then use pip to install it from that file. The Django download site has checksums that you can validate manually as well. I don't use osx, but probably something like this would help:

cd /tmp
wget https://pypi.python.org/packages/source/D/Django/Django-1.5.1.tar.gz
md5sum Django-1.5.1.tar.gz
pip install Django-1.5.1.tar.gz

这篇关于为什么pip失败与坏的md5哈希的包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆