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. pip
with get-pip.py
/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
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.