이전 장고 프로젝트를 지금 배포해야합니다. 이 프로젝트에 사용 된 정확한 버전을 설치해야합니다.git 저장소 패키지로 PIP 설치 오류가 발생했습니다.
이 프로젝트의 requirements.txt에는 GIT repos의 일부 패키지가 있습니다.
오류 다음pip install -r requirements.txt
의 던지기를 사용하는 요구 사항을 설치하는 동안.
File "/home/nyros/Desktop/new/rmkenv/local/lib/python2.7/site-packages/pip/req.py", line 70, in __init__
req = pkg_resources.Requirement.parse(req)
File "/home/nyros/Desktop/new/rmkenv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2606, in parse
reqs = list(parse_requirements(s))
File "/home/nyros/Desktop/new/rmkenv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2544, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "/home/nyros/Desktop/new/rmkenv/local/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2512, in scan_list
raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'django_filebrowser-origin/HEAD', 'at', '/HEAD')
Storing debug log for failure in /home/nyros/.pip/pip.log
문제는 requirements.txt의 git urls와 같다고 생각합니다. 다음 requirements.txt를 확인하고 요구 사항을 설치하기 위해 수정해야 할 사항을 알려주십시오.
-e hg+https://bitbucket.org/descent/[email protected]#egg=django_aloha-dev
-e git+https://github.com/Bouke/[email protected]5803f7a48543#egg=django_filebrowser-origin/HEAD
-e git+https://github.com/toastdriven/[email protected]#egg=django_haystack-master
-e git+https://github.com/jowolf/[email protected]#egg=django_ide-master
-e git+https://github.com/bread-and-pepper/[email protected]#egg=django_userena-origin/HEAD
-e git+https://github.com/pythonforfacebook/[email protected]#egg=facebook_sdk-master
URL의 https를 git으로 바꾸어보세요. 또한 해당 리포지토리가 여전히 존재하는지 확인하십시오! –
나는 그것을 사용하지 않았다, @MudassirRazvi – RMK
그 저장소는 존재하지만, @ 커밋은 존재하지 않는다. – RMK