Comment 6 for bug 1863414

Revision history for this message
Сидоренко Михаил Павлович (Sidorenko Mikhail Pavlovich) (sg-muwa) wrote :

My pip does not work.

$ 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)

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
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)