$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done Package python-pip is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python3-piptanto mi pip como mi pip3 están instalados en python 3
pip -V pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8) pip3 -V pip 20.1.1 from /usr/lib/python3/dist-packages/pip (python 3.8)Ahora no puedo instalar pip ... muestra el error anterior
Use estos comandos primero, luego intente nuevamente y realice una reinstalación mediante sudo apt reinstall python3-pip
sudo add-apt-repository universesudo add-apt-repository multiversesudo apt-get updateSi tiene python (python2) instalado, puede usar el siguiente comando para instalar pip (para python2).
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.pyAhora puedes buscar pip2
pip2 --versionEspero que esto te ayude
Solo como referencia, este problema puede ocurrir si está utilizando Windows Ubuntu Shell y su firewall está bloqueando el tráfico de su espacio aislado de Ubuntu. En ese caso, no se pueden encontrar los recursos de instalación y la simple apt-update no funcionará.
Para probar si el firwall causa su problema, simplemente puede intentar hacer ping a un sitio web . Además, si apt-update falla con la connection refused , es probable que su problema sea el firwall. Consulte esta publicación sobre cómo agregar su sandbox a la lista blanca de firewall (Protección de punto final).