Python with Homebrew
To install Python 2.7 plus any dependencies required (it can take a few minutes to build everything) just run the following in your terminal window (always without the $, your default terminal window will always start with the following username$
):
When finished, you should see a summary in the terminal.
Plus running this line: $ which python
should output : /usr/local/bin/python
.
It also installs pip (and its dependency Setuptools), which is the package manager for Python.
Finally, let's get them upgraded. Run both the lines:
Executable scripts from Python packages you install will be put in /usr/local/share/python
, we already had this in the Env.sh
file created before. Save the file and open a new terminal to take the new $PATH
into account (everytime you open a terminal, .bash_profile
gets loaded).
Last updated