通过pip需求fi获取更新分发

2024-06-16 09:54:12 发布

您现在位置:Python中文网/ 问答频道 /正文

im使用pip需求文件来处理与virtualenv的依赖关系。我正在使用ubuntu10.04LTS,在将djangorestframework添加到.pip文件后,问题出现在djangorestframework上

下载requirements@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需求文件升级distribute,却徒劳无功。在


Tags: installpip文件djangofromiseggversion
1条回答
网友
1楼 · 发布于 2024-06-16 09:54:12

如果需要发布为0.6.25版本,只需在需求中指定:

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

相关问题 更多 >