微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在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.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐