![Medieval groupon](https://cdn1.cdnme.se/5447227/9-3/screenshot_8_64e62948e087c31b4a9aa5ed.jpg)
![upgrade python mac upgrade python mac](https://sites.pitt.edu/~naraehan/python3/img/mac-install-1.png)
If you don't have brew installed (firstly you should be ashamed of yourself):.Here is the trick: We are NOT using easy_install. Now that you fixed the permissions, you can go ahead and install a python2 interpreter that will NOT ever require sudo with pip and hence will install your packages just fine: (don't worry we will get to python3 as well) That's why we made everything belong to us Let's install the one and only python2 we will use!: That's why the next step is so important:īasically, everything in this folder is supposed to NOT require root priviliges, which if they do they give pip a hard time later on. Thus any attempt to install new python versions will seem to work fine for now, but will be a brat later on. Then there is a good chance you messed up permissions with some packages too. Here's the fun part: if you already messed up your python environment, What's important is how you install the new version. If you have anaconda installed, get rid of that too:.In other words, delete old paths related to python. bash_profile):ĭelete all lines that have amework in it. zprofile or whichever shell you are using (If you don't know what I'm talking about then it's.
![upgrade python mac upgrade python mac](https://www.thecrazyprogrammer.com/wp-content/uploads/2020/07/python-windows-version-check.png)
![upgrade python mac upgrade python mac](https://i.ytimg.com/vi/S53tFGtl1Zo/maxresdefault.jpg)
![upgrade python mac upgrade python mac](https://projects-static.raspberrypi.org/projects/generic-python-install-python3/4fcf0ec44e1b45cce27825ca2daa33c6529de333/en/images/macos_install_step2.png)
(source: but I changed it a bit to remove python3 too)Įdit whatever shell profile you have, like. Ls -l /usr/local/bin | grep './Library/Frameworks/amework/Versions/2.7' | awk '' | tr -d | xargs rm Otherwise you WILL have to reinstall macos, it WILL crash, don't do it. Remove all the third party python installations:Ĭareful! Don't delete anything under the /System/ folder.I am not sure if this is really necessary, but I did it just so I get a fresh start First, remove all the python packages you installed.any attempt to fix using online resources made it worse.almost no package I installed with pip worked without a headache.Too many different symlinks which I lost track of.I had too many different python interpreters.Here is what I had messed up, which you also probably did: Whatever I install for python2 or python3 using pip JUST.WORKS. Today, I finally fixed my python installation. I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti.
![Medieval groupon](https://cdn1.cdnme.se/5447227/9-3/screenshot_8_64e62948e087c31b4a9aa5ed.jpg)