Warning: cannot find svn location for distribute==0.6.16dev-r0


I am getting the following error with that command:

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

This is my requirements.txt file beforehand:

8/30/2018 7:36:12 PM

Accepted Answer

First, I'd note that is not an error, but rather a warning (though it is a serious one).

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

But the file will still have:

## FIXME: could not find svn URL in dependency_links for this package:

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

Will output the error:

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
1/14/2012 8:54:11 AM

sudo pip install --upgrade distribute

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow