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

我在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.

相关文章

developer-roadmap —— 提供最全的开发者技术路线指南。前端...
一个极简的文件分享工具,无需注册且没有广告即可生成共享下...
收集 Github、Gitee优秀的开源项目,并进行归类整理。项目地...
大家好,我是 Java陈序员,我们有时会搭建一个属于自己的网站...
一个提供交互式的Web UI用于生成兼容MyBatisPlus框架的相关功...
大家好,我是 Java 陈序员。权限认证是我们日常开发绕不过的...