How to Update Python 3.6 to Python 3.7 or 3.8 on Mac OS

August 24, 2019  1 minute read  

Learn how to upgrade Python 3.6 to Python 3.7 or 3.8 on Mac OS.

Python Official Site

1) Open up Python official download site. It looks something like the image below. Press Download Python 3.7.4(release date was July 8, 2019) or Download Python 3.8.0(release date was Oct. 14, 2019) or the version you would like to download.

Python Official Site

2) Use the download installer to install Python 3.7. You can refer to How to Install Python3 article for more information.

Homebrew

If you use Homebrew, you can run brew install command to update Python to Python 3.7


brew install python3

Verification

After you install, python3 command will point to Python 3.7. You can verify by using commands below.


python3 --version
# Python 3.7.4

You can use which command to find out the location of Python 3.7


which python3  
# /Library/Frameworks/Python.framework/Versions/3.7/bin/python3

which python3.7
# /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7

Note

You can check out How to Install Pip article to learn how to install Pip.

Support Jun

Thank you for reading!    Support JunSupport Jun

Support Jun on Amazon US

Support Jun on Amazon Canada

If you are preparing for Software Engineer interviews, I suggest Elements of Programming Interviews in Java for algorithm practice. Good luck!

You can also support me by following me on Medium or Twitter.

Feel free to contact me if you have any questions.

Comments