2012-03-22 6 views
1

을 통해 배포하려면 virtualenv와의 종속성에 대한 pip 요구 사항 파일을 사용하십시오. 메신저 @URLObject 오류가 발생하는 요구 사항을 다운로드하는 동안 .pip 파일piping 요구 사항 파일

에 추가 한 후, 지금 문제가 djangorestframework에 도달했습니다 ubuntu10.04LTS을 사용하여 다음과 같이

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))

내 핍 요구 사항 파일은 말합니다 :

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

나는 distribute-0.6.25를 추가하여 시도해 보았지만 pip 요구 사항 파일을 통해 어떻게 업그레이드 할 수 있습니까?

답변

4

방금 ​​같은 문제가 발생했습니다. 실행이 해결

:

pip install -U distribute==0.6.25 

내가 요구 한 한 번이 아니라 하나에 설치되어 있기 때문에 요구 사항이 파일을 통해 당신이 그것을 업데이트 할 수 있다고 생각하지 않습니다.

+0

--thanks을 빠른 응답을, 메신저이 오류 ** ValueError를 받고 : ('예상 버전 사양의를 ','pip install -U distribute == 0.6.25 ','at ','intall -U distribute == 0.6.25 ') ** pip 파일에 위의 행을 추가 할 때 – Dharani

+0

"pip install -U 배포 == 0.6.25 "껍질에. 요구 사항에 넣지 마십시오! – jpic

+0

쉘에서 할 수있는 권한이 없습니다. 요구 사항 파일을 유지하는 방법이 없습니다. 이상 나는 우분투 10.04lts에 – Dharani

0

당신은 요구 사항에를 지정, 0.6.25 버전으로 배포해야하는 경우 :

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

이것은 작동하지 않습니다. –