python - 警告 : cannot find svn location for distribute==0. 6.16dev-r0

标签 python django pip

该命令出现以下错误:

$pip freeze > requirements.txt 
Warning: cannot find svn location for distribute==0.6.16dev-r0

这是我之前的 requirements.txt 文件:

Django==1.3
django-registration==0.7

最佳答案

首先,我注意到这不是一个错误,而是一个警告(虽然这是一个严重的警告)。

issue page 来看,这似乎是 pip 中的一个未解决问题在 github 存储库上。当 pip 安装某个开发版本的东西时,就会出现问题,该开发版本保存在不是 SVN 的存储库上。问题页面提供的一个示例:

mkvirtualenv test --no-site-packages
workon test
pip install flask==dev
pip freeze > requirements.txt

它将这个结果打印到标准错误:

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。见这里:

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

关于python - 警告 : cannot find svn location for distribute==0. 6.16dev-r0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8860731/

相关文章:

存储访问 key 的 Django 最佳实践

python - 将包提交到 PyPI 时如何解决问题 "PyPI-test not found in .pypic"?

python - 使用 pip 安装 SciPy 和 NumPy

python - 使用 apt 安装的 Pip 包进行更新/卸载(反之亦然)

python - 使用 AWS API 网关触发在 EC2 实例上运行的 python 脚本并传递参数

python - 如何在 Django 中禁用来自 Requests 库的日志消息

django - 在 Django 模型中添加新列

python - 删除dbf文件/lib中的空格

python - 在 python 中序列化一个 suds 对象

python :函数