Brew Python



$(brew -prefix)/opt/python@3.9/libexec/bin You can install Python packages with pip3 install They will install into the site-package directory $(brew -prefix)/lib/python3.9/site-packages tkinter is no longer included with this formula, but it is available separately: brew install python-tk@3.9 See: https://docs.brew.sh/Homebrew-and-Python. Pyjs Desktop allows the exact same Python web application source code to be executed as a standalone desktop application (running under Python) instead of being stuck in a Web browser. For Free Software platforms, most Linux Distributions now come with pyjs and pyjs Desktop pre-packaged: Debian/Testing, FC13, ArchLinux and Gentoo. Homebrew installs pip pointing to the Homebrew’d Python 3 for you. Working with Python 3 ¶ At this point, you have the system Python 2.7 available, potentially the Homebrew version of Python 2 installed, and the Homebrew version of Python 3 as well.

tldr; install brew; brew install python

Brew update python

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

Brew Python Path

Brew

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 --verbose

Brew Python

Now you can run python3 in your terminal

> python3

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

Brew Upgrade Python

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

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

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

Brew Python 3.8

Brew python3Brew

Brew Python-dev

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