1
votes

I tried to move away from Mac default version of python, but for various reasons that doesn't suit me well so I want to revert it back.

What I did: I followed http://blog.manbolo.com/2014/09/27/use-python-effectively-on-os-x#p1

to first install homebrew, then installed python.

This screwed me up because I execute a python script I used to be able to run with default python, I got:

==================================================

Expected in: flat namespace in /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so

==================================================

I can feel the messed up version because:


$ which python

/usr/local/bin/python


and


$ python

Python 2.7.10 (default, Oct 23 2015, 19:19:21) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin Type "help", "copyright", "credits" or "license" for more information.


this search didn't feel helpful

1

1 Answers

2
votes

Simply did:

$ rm -rf /usr/local/Cellar/python

(and $ brew cleanup) (not sure whether that's necessary) also brew uninstall python doesn't work so..