osx - How to uninstall all python versions and use the default system version of OS X 10.10? -


i'm looking way cleanly uninstall versions of python on os x 10.10 except default version followed mac. how proceed?

currently i've weird behaviour. when typing which -a python following output:

/users/harisfawad/anaconda/bin/python /library/frameworks/python.framework/versions/2.7/bin/python /usr/local/bin/python /usr/bin/python 

why doesn't default version of python in /system/library/.../ show here? can locate version in finder, know isn't deleted.

also, echo $pythonpath returns empty line.

can go ahead , delete these folders , expect default version run correctly?

i've read similar inquiry here http://bugs.python.org/issue7107 i'm not sure if still applicable python versions 2.7/3.4.

this similar question how uninstall python 2.7 on mac os x 10.6.4? again, don't want careless , uninstalling before making sure system provided version works.

update: when running brew doctor warning: "config" scripts exist outside system or homebrew directories. , goes on listing "config" files in /.../anaconda/bin , in /library/.../bin.

update2: i've gone default version of python included in os x. above versions of python moved trash, except /usr/bin/python. thanks, @rhashimoto , @padraiccunningham!

the file /usr/bin/python (and /usr/bin/pythonw, hard link same file) launcher program invokes default version of python /system/library/frameworks/python.framework/versions. can select version (2.6 , 2.7 in yosemite) launcher invokes using either defaults command or versioner_python_version environment variable.

if want run specific version manually, can invoke /usr/bin/python2.6 or /usr/bin/python2.7, symbolic links /system/library/frameworks/python.framework/versions.

you should fine removing other python implementations list path, including /library/frameworks/python.framework/versions/2.7/bin/python (not sure how got one). still wise move them somewhere (e.g. trash folder) test change before deleting them permanently.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -