The pip3 command was "broken", what should I do?

Asked

Viewed 67 times

0

all right? I had done some tests to install a library in python and unfortunately I ended up "ruining" the command. The fact is the system does not recognize it as installed, but when using the command

sudo apt install python3-pip

It doesn’t install it, it follows the message that appears:

Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 23 não atualizados.

The message leads me to believe that the installation has already been done, but if we use the command

whereis pip3

or

whereis pip2

or

whereis pip

Always returns the same answer:

pip3:

or

pip2:

or

pip:

Now we can notice that although there is no Pip version on my system, it cannot be installed. The fact was caused by an error of mine, I must confess(I used the "dpkg" to uninstall try to reinstall again later), but will there be no repair?

Thank you in advance, Bartholomew.

  • Hello, this question would be better used if it was posted on Askubuntu or in the Unix & Linux, both owned by Stack Exchange. The questions there have as contributors Linux system users day to day, and can give more complete and grounded answers, while the Stack Overflow (both the original as to the brazilian ) are focused on problems with programming, and I fear that you will not get the answer desired by the simple fact of ...

  • ... that people don’t expect that question. We have several examples of questions belonging to other exchange network sites that received great votes and amazing answers when posted on their respective sites, but when posted here, were not as well received.

  • I hope I helped. Please access our survival guide, and welcome to Stack Overflow

  • 1

    Thank you very much for the Commission, I was not aware of these sites

1 answer

1


I decided to reinstall Python (in case I use Python3), so I used the following command:

sudo apt-get install --reinstall python3

So Python was reinstalled and to ensure that everything was fine, I decided to reinstall Pip as well (in the case of pip3).

sudo apt-get install --reinstall python3-pip

So I was able to make Pip work,

I appreciate the attention and I hope I’ve helped someone.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.