无法在虚拟环境中进行点击

时间:2015-03-31 13:25:17

标签: python pip virtualenv

我正在尝试在我的虚拟环境中安装django-rq,但我遇到了这个错误:

pip install django-rq

Collecting rq>=0.3.4 (from django-rq)
  Using cached rq-0.5.1-py2.py3-none-any.whl
  Hash of the package https://pypi.python.org/packages/py2.py3/r/rq/rq-0.5.1- py2.py3-none-any.whl#md5=45418bdc995c394b4293180a4c29cb88 (from 
https://pypi.python.org/simple/rq/) (e9d365b19b099235441599de78b25042)   doesn't match the expected hash 45418bdc995c394b4293180a4c29cb88!
  Bad md5 hash for package https://pypi.python.org/packages/py2.py3/r/rq/rq-0.5.1-py2.py3-none-any.whl#md5=45418bdc995c394b4293180a4c29cb88 (from https://pypi.python.org/simple/rq/)

我尝试在虚拟环境之外安装它,它工作得很好。但我不确定为什么不在虚拟环境中安装。

1 个答案:

答案 0 :(得分:5)

似乎pip正在尝试从本地缓存安装模块,请参阅此处了解更多详情:How do I install from a local cache with pip?

尝试使用以下内容:

pip install --no-cache-dir django-rq