$ pip --version
Traceback (most recent call last):
File "/home/sgmuwa/.local/bin/pip", line 6, in <module>
from pip._internal.main import main
ModuleNotFoundError: No module named 'pip._internal.main'
$ sudo dpkg-reconfigure python3-pip
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdin = io.open(p2cwrite, 'wb', bufsize)
$ pip --version
pip 20.0.2 from /home/sgmuwa/.local/lib/python3.8/site-packages/pip (python 3.8)
But bug is still exist:
$ sudo dpkg-reconfigure python3-pip
/usr/lib/python3.8/subprocess.py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
self.stdin = io.open(p2cwrite, 'wb', bufsize)
My pip does not work.
$ pip --version sgmuwa/ .local/ bin/pip" , line 6, in <module> rror: No module named 'pip._internal. main' python3. 8/subprocess. py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
Traceback (most recent call last):
File "/home/
from pip._internal.main import main
ModuleNotFoundE
$ sudo dpkg-reconfigure python3-pip
/usr/lib/
self.stdin = io.open(p2cwrite, 'wb', bufsize)
I found instruction: https:/ /qastack. ru/ubuntu/ 1025189/ pip-is- not-working- importerror- no-module- named-pip- internal
$ curl https:/ /bootstrap. pypa.io/ get-pip. py -o get-pip.py
$ python3 get-pip.py --force-reinstall
And pip work nice:
$ pip --version .local/ lib/python3. 8/site- packages/ pip (python 3.8)
pip 20.0.2 from /home/sgmuwa/
But bug is still exist: python3. 8/subprocess. py:838: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used
$ sudo dpkg-reconfigure python3-pip
/usr/lib/
self.stdin = io.open(p2cwrite, 'wb', bufsize)