How can I use Homebrew to install both Python 2 and 3 on mac Mountain Lion? - Stack Overflow
I would use pyenv You can install it:
$ brew install pyenv
Once you have it, you can install different versions of python and choose which one you can use. Example:
$ pyenv install 2.7.5
You can check the versions you have installed with:
$ pyenv versions
And you can switch between python versions with the command:
$ pyenv global 3.3.1
Also you can set a python version for the current directory with:
Read full article from How can I use Homebrew to install both Python 2 and 3 on mac Mountain Lion? - Stack Overflow
No comments:
Post a Comment