如何在requirements.txt中安装git源代码?

4
我在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')
1个回答

6
在你的requirements.txt文件中:
...
zope.interface==4.1.2
-e git://github.com/leonardoo/django-dropbox.git#egg=django_dropbox

请查看pip有关此主题的文档。


这个 egg 是什么东西?我应该在哪里拿它? - parsecer

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接