Reputation: 8291
I want install the specific 3.3 version of python.
I have tried:
brew versions
is not longer supported.
brew search python3
does not show python3.X versions.
brew tap homebrew/versions
does not work neither.
How can I install python3.3 in macosx using brew
and I don't want to use pyenv
.
Upvotes: 5
Views: 5344
Reputation: 8291
According to this answer
First uninstall python3
brew uninstall python3
Download this formula https://gist.github.com/booleangate/8f0bb23fdd53d699f763f0959c506049
Then go to directory where formula was downloaded and intro into terminal
brew install --debug python33.rb
From now on, if you want run this version of python you must type on terminal:
07:03:17 $ python3.3
Python 3.3.6 (default, Jan 26 2016, 06:48:22)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 2+2
4
>>> 3*3==9
True
>>>
Enjoy!
Upvotes: 1