How to install Python 3.3 (not 3.4) on OS X with Homebrew?

If you install python3 via Homebrew, it installs the latest default version, as I do. But I want 3.3 instead of 3.4. How can I replace it with 3.3 using Homebrew? I want to try Django with Python 3, but I'm just learning Django, so I want to use the latest stable version, currently 1.6, compatible with Python 3.3. I want to use it with Python 3, so it should be 3.3. Django 1.7 is compatible with Py3.4, but I don't want to interfere with this until it is stable ... on OS X 10.8.5

+8
python django homebrew macos
source share
1 answer

Here are some elements you can put together from frequently asked questions .

  • Can I edit formulas by myself? - Yes.

    brew edit python3 
  • find the url and change it to an ftp link in the 3.3 ( 3.3.6 ) archive.

  • Download the archive locally and calculate the checksum using shasum .

  • save the file as python33.rb and install with brew install --debug python33.rb .

Passing the --debug flag will help you in case some steps do not work properly (for example, in the last formula, deleting the 2to3 binary was a problem), you can simply try to return this change , since python3.3 does not have a ensurepip bootstrap module.

You can find the formula I used here: https://gist.github.com/booleangate/8f0bb23fdd53d699f763f0959c506049

+11
source share

All Articles