gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 10:55:49 24 4
gpt4 key购买 nike

我使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com