I'm trying to install pip. I'm running into a problem and I'm not sure how to get around it.
I have activated my virtualenv.
When I run $ pip I get the list of commands, but when I run $ pip list I get the following response.
distribute (0.6.28)
pip (1.4.1)
Exception:
Traceback (most recent call last):
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
status = self.run(options, args)
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site- packages/pip/commands/list.py", line 80, in run
self.run_listing(options)
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site- packages/pip/commands/list.py", line 127, in run_listing
self.output_package_listing(installed_packages)
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/commands/list.py", line 136, in output_package_listing
if dist_is_editable(dist):
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/util.py", line 347, in dist_is_editable
req = FrozenRequirement.from_dist(dist, [])
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/pip/__init__.py", line 194, in from_dist
assert len(specs) == 1 and specs[0][0] == '=='
AssertionError
Storing complete log in /Users/Marcus/.pip/pip.log
THanks
Try the solution suggested here on GitHub :
It happens when you install distribute using http://python-distribute.org/distribute_setup.py script. Running pip install -U distribute fixes the problem. The bug reproduces only in pip==1.4.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.