Running pip
or pip3
results with:
Traceback (most recent call last):
File "/home/myuser/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named 'pip._internal'
I had issues with this, and uninstalled pip3, but when i try to install it again using
sudo apt-get -y install python3-pip
it does install, but then running pip or pip3 i get the same error.
#which pip3
/home/myuser/.local/bin/pip3
python3 -m pip install --user <package>
– Benjamin R Apr 21 '18 at 22:14easy_install
(comes frompython-setuptools
package), you can dosudo easy_install pip
(orsudo easy_install3 pip
for python3-only, etc.) – Marek Sebera May 25 '18 at 14:40~/.local/bin
. – David Foerster Jul 10 '18 at 16:37pip
from one stage that was installed using Python 3 in another stage using Python 2. – esmail Oct 07 '20 at 20:10python -m ...
notpython3 -m ...
at https://stackoverflow.com/questions/18363022/importerror-no-module-named-pip/66956587#66956587 – Victoria Stuart Apr 05 '21 at 16:53sudo apt install --reinstall python3-pip python-pip
solved this issue for me on Debian. – ndvo Jun 20 '21 at 17:33