Brew Python3

admin
  1. Brew Python3 Review
  2. Brew Python3-dev

Feb 07, 2021 Have Homebrew manage Python 3. The Homebrew project provides a free and open source package manager for macOS that many people rely on. It gives Apple users a power similar to apt-get or yum. If you are a Homebrew user, you may already have Python installed. To quickly check, run. Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew. “To install, drag this icon” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software. $ brew install-cask firefox.

tldr; install brew; brew install python

Homebrew is a great installer for Mac and its main job is to make it easier to install packages.

Step 1: Download Homebrew here

'brew' hosts its package information here as “formulae“.

Step 2: Use brew to install the latest version of Python

$ brew install python --verbose1password desktop app windows.

Now you can run python3 in your terminal

> python3

More details: So what happens when I run brew install?

When you run the command, brew will look for the package in the “formulae” list and run the installation script for the package.

Brew Python3 Review

Brew installs *all* packages into its own directory on your computer at /usr/local/Cellar .

Take a look with $ ls /usr/local/Cellar.

After installation, brew creates a symlink which is basically a shortcut that will allow your system to run the new command > python3.

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.

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

Verification

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

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

Note

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

Support Jun

Brew Python3

Thank you for reading!

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.

Brew Python3-dev

Feel free to contact me if you have any questions.