In attempting to get started learning and developing python, I've tried to follow the Python Guide to installing python on OS X, but haven't found it particularly "noob friendly." I have a new MacBook (Mtn. Lion - OS X 10.8.3) wich comes with Python 2.7.2 built in. But the guide advises installing a "framework-style build" via homebrew. So:
I installed homebrew via
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Then it tells you to add homebrew to the top of your
PATH
by adding it to your~/.bashrc
file.ls -a
showed that I did not have a~/.bashrc
file in my home directory. After searching Stack Overflow on how to do that, I rannano ~/.bashrc
, and inserted the lineexport PATH=/usr/local/bin:$PATH
to the file and saved the file.I then ran
brew install python --framework
and the install completed.Then, the guide says to "add the new Python scripts directory to your
PATH
" so, I'm assuming that means I need to add the line it provides to my~/.bashrc
file also. So, I addedexport PATH=/usr/local/share/python:$PATH
to my~/.bashrc
file above my previous entry.Finally, this is where I run into trouble, it says to
easy_install pip
. However, when I do that I get an error 13.
So, here are the things I need some help with.
Was I correct in my assumptions about how to add homebrew and python scripts to my
PATH
?Did I do something wrong or do I just need to use
sudo
to install pip? (I'm really sorry if the answer is already on this page but even those answers don't make total sense to me and I want to be careful and not screw something up)After installing the framework-style build of python (which I believe was the current 2.7.3), how come running
python
in my terminal still shows v2.7.2?
Thanks! I appreciate any help.