46
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:
Flask==0.9-devdev-20120114
Jinja2==2.6
Werkzeug==0.8.2
wsgiref==0.1.2
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
- [Django]-How to show a many-to-many field with "list_display" in Django Admin?
- [Django]-Difference between objects.create() and object.save() in django orm
- [Django]-Cannot import name _uuid_generate_random in heroku django
3
Don’t have enough rep to comment, but sudo pip install --upgrade distribute
borked my pip installation. Pip version 1.4.1. After running that command, pip freeze gives an AssertionError.
The fix for THAT is sudo pip install setuptools==7.0
The two solutions combined fixed the svn URL warning.
- [Django]-Django + Ajax
- [Django]-Django Rest Framework custom response message
- [Django]-Django 1.7 – App 'your_app_name' does not have migrations
1
I encountered the same problem trying to create a django project and deploy it on heroku. I think the problem was related to having multiple copies of django. Deleting django located at
/usr/local/lib/python2.7/dist-packages/django
and the reinstalling seemed to solve the problem. I was able to create the requirements.txt
without a warning.
- [Django]-How do I create a login API using Django Rest Framework?
- [Django]-No module named urllib.parse (How should I install it?)
- [Django]-How to set ForeignKey in CreateView?
0
Ron’s idea borked my pip installation too, and MikeTwo’s fix did not fix it.
I ended up removing pip and re-installing is, as found here (UzLA’s comment). Remove package:
sudo apt-get remove --auto-remove python-pip
Download official pip installer:
wget https://bootstrap.pypa.io/get-pip.py
install it:
sudo python get-pip.py
pip freeze
worked properly after this. It did give SNIMissingWarning
and InsecurePlatformWarning
, see the docs, but that’s not the issue here.
Note: the source of this fix as has a 4th step, to set up a symlink from /usr/local/bin/pip to /usr/bin. This may not be necessary. Try stat /usr/local/bin/pip
. That should report a regular file, size 200 bytes or so. You can less /usr/local/bin/pip
to see what’s in it. Then do echo $PATH
to check if /usr/local/bin
is in there. If it is, the symlink is not needed.
- [Django]-You are trying to add a non-nullable field 'new_field' to userprofile without a default
- [Django]-Numeric for loop in Django templates
- [Django]-How do I go straight to template, in Django's urls.py?