How to upgrade to python 3.5 from 2.7 on Mac OSX

How to upgrade from python 2.7 to 3.5 on Mac OSX? I downloaded the python 3.5.dmg file and installed it. What changes should I make for PYTHONPATH and PATH?

Is it possible to use both without problems using virtualenv?

+11
python macos
source share
3 answers

There is no need to download the .dmg file, just do it using "brew". Macbook has preinstalled python2. To download python3, run this on a terminal:

brew install python3 
+15
source share

If you already have Python 2.x installed, you can use brew upgrade python to upgrade to Python 3.x

+3
source share

there was this problem as well. I moved to the PATH location for Python2.x and Python3.7. Updated with homebrew and hopefully the pip installer will work.

0
source share

All Articles