点冻结> requires.txt错误 [英] pip freeze > requirements.txt error
问题描述
我收到以下错误:
$pip freeze > requirements.txt
Warning: cannot find svn location for distribute==0.6.16dev-r0
这是我的require.txt文件:
This is my requirements.txt file beforehand:
Django==1.3
django-registration==0.7
推荐答案
首先,我会注意到这不是错误,而是一个警告(虽然这是一个严重的)
First, I'd note that is not an error, but rather a warning (though it is a serious one).
这似乎是一个开放的问题,在这个发行页面。当pip正在安装一个持有在不是SVN的存储库上的开发版本时,会出现此问题。问题页面的一个例子是:
This appears to be an open issue in pip, judging by this issue page on the github repository. The problem arises when pip is installing something a development version that is held on a repository that is not SVN. One example that issue page provides:
mkvirtualenv test --no-site-packages
workon test
pip install flask==dev
pip freeze > requirements.txt
它将打印此结果为标准错误:
It will print this result to standard error:
Warning: cannot find svn location for Flask==0.9-devdev-20120114
但文件仍然会有:
## FIXME: could not find svn URL in dependency_links for this package:
Flask==0.9-devdev-20120114
Jinja2==2.6
Werkzeug==0.8.2
wsgiref==0.1.2
但是,我将来无法使用此文件来安装Flask。参见这里:
However, I won't be able to use this file in the future to install Flask. See here:
mkvirtualenv test2 --no-site-packages
workon test2
pip install -r requirements.txt
输出错误:
Downloading/unpacking Flask==0.9-devdev-20120114 (from -r requirements.txt (line 2))
Could not find a version that satisfies the requirement Flask==0.9-devdev-20120114 (from -r requirements.txt (line 2)) (from versions: )
No distributions matching the version for Flask==0.9-devdev-20120114 (from -r requirements.txt (line 2))
Storing complete log in /Users/dgrtwo/.pip/pip.log
这篇关于点冻结> requires.txt错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!