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
-
Are "unmet dependencies" packages that python3 depends on, or packages which depend on python3?Dmitry Grigoryev– Dmitry Grigoryev2019年07月03日 13:41:04 +00:00Commented Jul 3, 2019 at 13:41
-
1What error do you get if you try to use pip or pip3?CoderMike– CoderMike2019年07月03日 14:32:26 +00:00Commented 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 itFirestarter– Firestarter2019年07月10日 13:17:45 +00:00Commented 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– Dougie2022年03月21日 13:44:01 +00:00Commented Mar 21, 2022 at 13:44
1 Answer 1
sudo apt-get purge python3
sudo apt-get install python3
might do the trick :)
-
2Doing
sudo apt update
is also a good idea before reinstall.Ingo– Ingo2019年07月04日 09:29:19 +00:00Commented 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– goldilocks2022年03月23日 16:17:56 +00:00Commented Mar 23, 2022 at 16:17
lang-py