I installed pip, but if I try to install a package with
python -m pip install requests
it says
/usr/local/bin/python: No module named pip
How can I figure out where the problem is?
The problem is not with pip, but that the modules are not installed in the right way, so I can’t use them in Python. I am using Ubuntu 15.04 (Vivid Vervet).
My situation is that the Python 3 works fine, but pip 3 does not work (the default Python version is Python 2.7, but it doesn't matter).
I solve this problem by the following command:
apt-get purge python3-pip
apt-get install -y python3-pip
And if you are not the root user, you may need to add sudo
in the beginning of the command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With