Python-Pip-Paket kann mit apt nicht entfernt werden

Sep 18 2020

Hier sind meine Befehle:

  1. Überprüfen Sie, ob es existiert
❯ sudo apt list python-pip       
Listing... Done
python-pip/cosmic,cosmic 9.0.1-2.3 all
  1. entfernen Sie es
❯ sudo apt remove python-pip 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'python-pip' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

Ich bin neu in Linux. Bei der Installation der Ubuntu-Distribution stellte ich fest, dass der Python-Befehl auf v2.7 verweist, python3 auf v3.6 und pip auf python v2.7. Was ich tun möchte, ist, Python und Pip zu entfernen, da sie bis zum kommenden Jahr nicht erwähnt werden, so Gott will!

Was ist das Problem, das ich habe?

Antworten

1 BenFranske Sep 20 2020 at 21:56

Ich glaube nicht, dass Sie tatsächlich Python-Pip installiert haben. Das System gibt eindeutig an, dass Python-Pip nicht installiert ist. Nur weil sich ein Paket in der Datenbank befindet (apt-Liste), bedeutet dies nicht unbedingt, dass es installiert ist.