Why does pip fail with bad md5 hash for package?

后端 未结 4 1052
醉梦人生
醉梦人生 2020-12-24 13:14

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:

相关标签:
4条回答
  • 2020-12-24 13:54

    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
    
    0 讨论(0)
  • 2020-12-24 13:55

    I now had this issue several times.

    Like others mentioned before me, pip install [module] --no-cache-dir helps most of the time.

    But sometimes, you got some dependencies to install first and it fails installing one of these (md5 validation failed).

    Just had this problem myself. In this case, installing this dependency alone like pip install dependency worked and after that I was able to install the first module.

    Also pip install -vvv is nice for more info gathering on general problem solving

    0 讨论(0)
  • 2020-12-24 14:09

    I have the same problem when I try sudo pip install Pillow, and I try sudo pip install --no-cache-dir Pillow, it works for me.

    0 讨论(0)
  • 2020-12-24 14:19

    For me below command works

    pip install django --no-cache-dir

    0 讨论(0)
提交回复
热议问题