I cannot get pip to work and I think that reinstalling python 3.7 might help. When I try 'sudo apt install --reinstall python3' I get an error saying there are unmet dependencies. If I specify it to be python3.7 it can't locate the package.

  • Are "unmet dependencies" packages that python3 depends on, or packages which depend on python3? Commented Jul 3, 2019 at 13:41
  • 1
    What error do you get if you try to use pip or pip3?
    – CoderMike
    Commented Jul 3, 2019 at 14:32
  • yeah it says something with LibreOffice. I'm fine if that's messed up though I don't use it Commented Jul 10, 2019 at 13:17
  • This isn't the way to solve a PIP problem. You're turning it into an X-Y problem. Post a new question with the errors you get from PIP rather than your hare-brained idea to attempt to re-install Python. (Which won't work and will destroy your system).
    – Dougie
    Commented Mar 21, 2022 at 13:44

1 Answer 1


sudo apt-get purge python3

sudo apt-get install python3

might do the trick :)

  • 2
    Doing sudo apt update is also a good idea before reinstall.
    – Ingo
    Commented Jul 4, 2019 at 9:29
  • Someone has reported this can do very nasty things on a current (2022) install, which makes sense if various important components (apparently including critical parts of the desktop) have migrated from python 2 to 3.
    – goldilocks
    Commented Mar 23, 2022 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.