gpt4 book ai didi

python - 如何在 requirements.txt 中安装 git 源?

转载 作者:太空宇宙 更新时间:2023-11-03 14:19:24 28 4
gpt4 key购买 nike

我在 requirements.txt 中有这段代码,但我记得我使用这种方法安装,但这次我只收到错误 ...

static3==0.5.1
Twisted==15.0.0
urllib3==1.10.2
w3lib==1.11.0
zope.interface==4.1.2
pip install git+https://github.com/leonardoo/django-dropbox

当我这样做时出现错误...

File "/app/.heroku/python/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/pkg_resources/__init__.py", line 2785, in scan_list
remote: raise ValueError(msg, line, "at", line[p:])
remote: ValueError: ('Expected version spec in', 'pip install git+https://github.com/rajasimon/python-twitter', 'at', ' install git+https://github.com/rajasimon/python-twitter')

最佳答案

在您的requirements.txt 文件中:

...
zope.interface==4.1.2
-e git://github.com/leonardoo/django-dropbox.git#egg=django_dropbox

检查 pip's documentation on the subject .

关于python - 如何在 requirements.txt 中安装 git 源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29757367/

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