0

I am having troubles removing Python 2.7 from my Mac. I have tried to install both Python 3.8 and 3.9, but when I run "python --version" in Terminal it says 2.7.16.

How can I uninstall 2.7?

misterdh
  • 73
  • 6
  • 1
    Wich version of Mac OS are you running? And how did you install python? – umgefahren Dec 28 '20 at 14:54
  • 2
    You almost certainly should **not** do this. macOS comes with a version of Python that it needs. Don't mess with your OS. Instead, use virtualenvs for your projects. – Chris Dec 28 '20 at 14:56
  • 1
    use `python3` instead of `python` command, removing python 2 can cause problems – Ismail Durmaz Dec 28 '20 at 14:57
  • Thanks, I will tryt o use python3 instead of python – misterdh Dec 28 '20 at 15:00
  • 1
    ...but [still use virtualenvs](https://stackoverflow.com/q/41972261/354577). – Chris Dec 28 '20 at 15:00
  • I faced the same issue, better create a Virtual Environment with the python version you prefer. And work on it. – Anto Pravin Dec 28 '20 at 15:01
  • you need to remove python2.7 and the links to it and paths. this is described/solved in this link https://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4 – QBits Apr 02 '21 at 08:41

0 Answers0