Updating python on mac os x
That can be convenient at times, but it can also create problems.
For example, sometimes one project needs the latest version of Django, while another project needs an older Django version to retain compatibility with a critical third-party extension.
In fact, we’ve already set that above, via the For more information about virtual environments, read the Virtualenv docs.
These are obviously just the basic steps to getting a Python development environment configured.
This guide assumes that you have already installed Homebrew.
For details, please follow the steps in the mac OS Configuration Guide.
However, there is one important remark about the version of pyvenv you have installed: only if you installed Python 3.4 or latter, pyvenv will also install pip when creating a new virtual environment.
We are going to install the latest 2.7.x version of Python via Homebrew.
Why bother, you ask, when Apple includes Python along with mac OS?
This is one of many use cases that Virtualenv was designed to solve.
On my systems, only a handful of general-purpose Python packages (such as Mercurial and Virtualenv are globally available — every other package is confined to virtual environments.
By default, your Mac comes installed with Python 2.7, no installation necessary!