Python Installation

From NovaOrdis Knowledge Base
Jump to: navigation, search

External

Internal

Mac

brew install python3

Multiple Python Versions

brew install python@3.7

Installs in /usr/local/Cellar/python@3.7 while preserving the current /usr/local/Cellar/python@3.9.

This version is not symlinked in /usr/local/bin. To use it:

export PATH="/usr/local/opt/python@3.7/bin:${PATH}"

Linux

yum install python3