osx - How to set up Python and Homebrew? -
i've installed homebrew on macbook pro (mavericks), , python 2.7.6, via homebrew. how can set homebrew's path , python's path use site-packages , version 2.7.6 in terminal? i've searched around clear answer thing it's pretty confusing, because edit .profile file, else .bashrc file. i'm mac noob, appreciated!
you can install python 2.7:
$ brew install python
this take minute or two. once that’s complete, you’ll have add new python scripts directory path
to open
vi .bash_profile
then add
export path=/usr/local/share/python:$path
more details on blogpost: http://johnlaudun.org/20120131-change-path-order-of-mac-os-x/
to try if python working on mac or now.
just run command on terminal :
python -c 'print "hello world!"
if prints "hello world!" on terminal, congrats have made
Comments
Post a Comment