python - 通过 pip 需求文件更新分发

标签 python django ubuntu-10.04 pip django-rest-framework

我使用 pip 需求文件来获取与 virtualenv 的依赖关系。我现在使用 ubuntu10.04LTS,在将它添加到 .pip 文件中之后,问题出现在 djangorestframework

在下载需求@URLObject 时出现错误并提示

Downloading/unpacking URLObject>=0.6.0 (from djangorestframework->-r /var/lib/myproj/base.pip (line 26)) Using download cache from /usr/local/pipcache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FU%2FURLObject%2FURLObject-2.0.1.tar.gz Running setup.py egg_info for package URLObject The required version of distribute (>=0.6.24) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U distribute'.
(Currently using distribute 0.6.10 (/var/lib/myproj/.ve/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg)) Complete output from command python setup.py egg_info: The required version of distribute (>=0.6.24) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U distribute' (Currently using distribute 0.6.10 (/var/lib/myproj/.ve/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg))

我的pip需求文件如下:

virtualenv
django
distribute
django-permissions
django-storages
django-sentry
#django-db-utils
PIL
#Required for APIs
djangorestframework

我什至尝试过添加 distribute-0.6.25,但我如何通过 pip 要求文件升级分发是徒劳的。

最佳答案

我刚遇到同样的问题。

通过运行解决:

pip install -U distribute==0.6.25

我不认为你可以通过需求文件更新它,因为需求是一次性安装的,而不是一个一个地安装。

关于python - 通过 pip 需求文件更新分发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9818455/

相关文章:

python - 使用 Python 打开 SSL URL

django - 为什么我的 id 没有出现在 django 管理员列表中?

python - google-charts 没有显示在服务器上

ruby-on-rails - Bundler 使用不同版本的 ruby

python - FutureWarning in using iteritems() in use .iloc() pandas

python - python中虚拟变量之间的交互

python - 如何部署 Python/SQLAlchemy 应用程序?

python - django 可以延迟加载模型中的字段吗?

python - FileNotFoundError 尝试在 Pycharm 中使用 Jupyter 读取数据文件

linux - 将 Perl 构建为独立的二进制代码