Reputation: 523
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 ?
Upvotes: 14
Views: 20346
Reputation: 61
had this issue as well. I navigated to the PATH location for both Python2.x and Python3.7. Updated with homebrew and hopefully the pip installer will work now.
Upvotes: 0
Reputation: 1036
I you have python 2.x already installed then you can use brew upgrade python
to upgrade to python 3.x
Upvotes: 3
Reputation: 185
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
Upvotes: 17