I am working on Ubuntu 10.10 and I have installed pip using the following command
apt-get install python-pip
However when I try installing any package using pip I get the following error
ImportError: No module named pip.log
What has possibly gone wrong here?hon
I have the same problem on debian squeezy(6.0) which default installation is python 2.6. To reproduce the problem:
Upgrade python to 2.7 from building the source code and installed it in /opt/python.
wget bootstrap.pypa.io/get-pip.py
and run get-pip.py
. The installtion should be successful.
run pip
and the errors occur. ImportError: No module named pip.log
.
The steps to solve the problem:
ls -l /usr/bin/pip
find the old pip installation location.
rm -rf pip
remove the old pip installation.
- reinstall the
pip
with get-pip.py
- relink the
/usr/bin/pip
to the new pip installation location which in my computer is ln -s /opt/python/lib/python2.7/site-packages/pip/__init__.py pip