Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade to python 3.5 from 2.7 in Mac OSX

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

Is it possible to use both without any issues using virtualenv ?

like image 993
vidyasagarr7 Avatar asked Jun 08 '16 05:06

vidyasagarr7


People also ask

How do I update python to latest version on Mac?

Show activity on this post. brew install python --> install the latest Python. ls -l /usr/local/bin/python* --> List all Python versions installed on your system. ln -s -f /usr/local/bin/python[your-latest-version-just-installed] /usr/local/bin/python --> Change default Python version to the latest version.


1 Answers

There is no need to download .dmg file, just do it using "brew". You macbook is preinstalled with python2. To download python3, run this on terminal:

brew install python3
like image 200
Nikhil Ranjan Avatar answered Sep 28 '22 01:09

Nikhil Ranjan