【问题标题】:How to install git source in requirements.txt?如何在 requirements.txt 中安装 git 源?
【发布时间】:2015-06-27 17:43:00
【问题描述】:

我在 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')

【问题讨论】:

    标签: python django heroku github pip


    【解决方案1】:

    在您的requirements.txt 文件中:

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

    检查pip's documentation on the subject

    【讨论】:

    • 这是什么egg 东西,我该拿去哪里?
    猜你喜欢
    • 1970-01-01
    • 2021-06-28
    • 2018-08-22
    • 2015-08-05
    • 2019-08-24
    • 2017-12-14
    • 2020-07-09
    • 1970-01-01
    相关资源
    最近更新 更多