osx - Choosing/Removing Python on Mac and PYTHONPATH -



osx - Choosing/Removing Python on Mac and PYTHONPATH -

i started utilize mac after , encountered problems numpy/matplotlib version. turned out there several python installations there , things different installations imported (which don't work together). have:

1) /opt/local/ - installed via macports

2) /library/frameworks/python.framework - installed hand

3) /system/library/frameworks/python.framework/versions/2.7/ - have no thought come from.

i checked:

pkgutil --pkgs

to find out:

org.pythonmac.matplotlib-platlib-py2.7-macosx10.6 org.pythonmac.numpy-platlib-py2.7-macosx10.5 org.pythonmac.numpy-scripts-py2.7-macosx10.5 org.pythonmac.scipy-platlib-py2.7-macosx10.5

so, suppose not working numpy comes from. have no thought how remove stuff , if not break os x scheme / bundle manager deps, etc. leave these files in place , utilize "my" numpy, unfortunately location 1 of first in pythonpath, numpy /system/library gets imported , doesn't work matplotlib macports.

to sum up, here questions: 1) safe , how remove these packages os x ? 2) how pythonpath set on os x, can manipulate (in order remove entries , forcefulness "my" numpy beingness imported, instead of old scheme one)?

this mac os x 10.7.5

i can't flag duplicate because don't have plenty rep, found possible reply here: how uninstall python 2.7 on mac os x 10.6.4?

as myildirim suggested, seek checking out virtualenv, virtualenvwrapper isolate installations in future! both maintain scheme sanitized , neatly organized.

as sec half of question, quick google search shows path can shown in .profile on system's path. within .profile python path you're looking for. [source/more information]

if have more questions, allow me know!

python osx python-2.7 numpy

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -