As root, I’m trying to set up a dev server running Debian Squeeze with a virtualenv directory.
My plan was to run the following commands:
apt-get install python-pip
pip install pip --upgrade
pip install virtualenv
On the last command, however, I got the following error and now get it whenever I run pip:
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in <module>
from pip.vcs import vcs, get_src_requirement, import_vcs_support
ImportError: cannot import name import_vcs_support
Google has little to offer on the subject. Subsequently installed python-dev and build-essential but the problem persists.
It appears something got screwed up while pip was updating itself.
I worked around the issue by re-installing pip using easy_install:
And then linking to that version:
(EDIT)
Here’s the complete sequence from scratch:
This is where the import error happened. To recover, continue with these steps:
It may be possible to avoid this by just using easy_install from the start, but I don’t have a clean Debian install at the moment to confirm this.