Friday, December 7, 2012

Permanently add path to python Mac Os

From Evernote:

Permanently add path to python Mac Os

We could add the PYTHONPATH variable to our .profile file in our home directory. 
An alternative is to create a user.pth file inside /Library/Python/2.7/site-packages, where python automatically looks inside all .pth files and adds the to the systems PATH

Monday, April 2, 2012

Installing Modules In Python

From Evernote:

Installing Modules In Python


A miscellaneous command that I always seem to forget….An easy way to install modules in Python is through pip

easy_install pip  (if not installed already)
pip install numpy
pip install matplotlib