I'm running under Snow Leopard 10.6.8 and I recently added an environment variable which it seems to be messing my bash terminal (I guess). What I did is add the variable DYLDLIBRARYPATH=/Library/. How to Uninstall Python 2.7 on Mac. Generally, the approach to uninstallation of Python 2.7 from Mac shares a lot of similarities with the one described above. Shut down all running python processes on your Mac before you attempt to remove the application folder.
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.Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS. My god! finally.
What the hell?
Here is what I had messed up, which you also probably did:
- I had too many different python interpreters
- Too many different symlinks which I lost track of
- almost no package I installed with pip worked without a headache
- any attempt to fix using online resources made it worse.
Let's set things right
- First, remove all the python packages you installed. I am not sure if this is really necessary, but I did it just so I get a fresh start
(source: https://stackoverflow.com/a/49200334/2770195)
- Also remove pip cache because why not:
- Now remove pip
- Remove all the third party python installations:Careful! Don't delete anything under the /System/ folder. Otherwise you WILL have to reinstall macos, it WILL crash, don't do it.
(source: https://stackoverflow.com/a/3819829/2770195 but I changed it a bit to remove python3 too)
- Remove python path stuff
Edit whatever shell profile you have, like.bash_profile
or.zshrc
and.zprofile
or whichever shell you are using (If you don't know what I'm talking about then it's.bash_profile
):
Delete all lines that havePython.framework
in it. In other words, delete old paths related to python.
(source: https://stackoverflow.com/a/3819829/2770195 again)
- If you have anaconda installed, get rid of that too:
How To Remove Python In Library Mac Download
(source: https://docs.anaconda.com/anaconda/install/uninstall/)
https://renewpals583.weebly.com/hide-folders-for-mac-free-download.html. So far all this was standard. Cubase 5 download free mac. What's important is how you install the new version. Here's the fun part: if you already messed up your python environment,then there is a good chance you messed up permissions with some packages too. Thus any attempt to install new python versions will seem to work fine for now, but will be a brat later on. That's why the next step is so important:
- Fix old package permissions:
Basically, everything in this folder is supposed to NOT require root priviliges, which if they do they give pip a hard time later on. That's why we made everything belong to us
Let's install the one and only python2 we will use!:
(don't worry we will get to python3 as well)
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:Here is the trick: We are NOT using easy_install. Got it? No easy_install. It's the devil. brew is love, use brew:
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:Here is the trick: We are NOT using easy_install. Got it? No easy_install. It's the devil. brew is love, use brew:
- If you don't have brew installed (firstly you should be ashamed of yourself):
Go to your .profile file again
and add these lines:
now install python2 using brew:
Python How To Remove Packages
(this will also install pip)
(source: https://docs.python-guide.org/starting/install/osx/)
(source: https://docs.python-guide.org/starting/install/osx/)
Ok, if you haven't screwed up anything so far, you should be able to use pip with a peace of mind.I just tried a bunch of packages like
numpy
and plotly
they all worked right awayInstall python3 (optional)
(yes, this installs latests python, which is right now python3. Also installs pip) Canoscan n1220u driver for mac os x.
Mac Os Remove Python 3
gg wp. Now do me a favor and end aging before I die. Just saying. Have fun.