This Homebrew tap provides formulae to install multiple Python versions.
| Python Version | Latest revision |
|---|---|
| Python 3.7 | 3.7.17 |
| Python 3.8 | 3.8.13 |
Replace X in examples below with minor version of Python -- 7 for Python 3.7, or 8 for Python 3.8.
Python 3.X will be installed into Homebrew's prefix as a keg (for example,
/opt/homebrew/opt/python@3.X on Apple Silicon), without linking into bin in
order to avoid conflicts with the main Python formula.
brew install cherepavel/python/python@3.XYou can use it to create a virtual environment by passing full path to the Python executable:
$(brew --prefix python@3.X)/bin/python3.X -m venv <path to venv>In order to update to latest version of pip, setuptools and wheel, use following command:
$(brew --prefix python@3.X)/bin/python3.X -m pip install -U pip setuptools wheelPython 2.7 has been removed from this repository in early January 2020 after it reached end-of-life. See #46 for details.
Python 3.6 has been removed from this repository in March 2022 after it reached end-of-life.
This repository started as a fork of the zoidbergwill/homebrew-python.