我已经用这个命令安装了一个库
pip install git+git://github.com/mozilla/elasticutils.git
直接从Github存储库安装.这很好用,我希望在我的requirements.txt
中有这种依赖性.我看过其他this张这样的票,但这并没有解决我的问题.如果我把
-f git+git://github.com/mozilla/elasticutils.git
elasticutils==0.7.dev
在requirements.txt
文件中,pip install -r requirements.txt
产生以下输出:
Downloading/unpacking elasticutils==0.7.dev (from -r requirements.txt (line 20))
Could not find a version that satisfies the requirement elasticutils==0.7.dev (from -r requirements.txt (line 20)) (from versions: )
No distributions matching the version for elasticutils==0.7.dev (from -r requirements.txt (line 20))
documentation of the requirements file没有提到使用git+git
协议说明符的链接,所以这可能只是不受支持.
有人能解决我的问题吗?