0

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.

asked Jul 3, 2019 at 13:18
4
  • 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? 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). Commented Mar 21, 2022 at 13:44

1 Answer 1

2

sudo apt-get purge python3

sudo apt-get install python3

might do the trick :)

answered Jul 3, 2019 at 14:57
2
  • 2
    Doing sudo apt update is also a good idea before reinstall. 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. Commented Mar 23, 2022 at 16:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.