Python Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
export PATH="/usr/local/opt/python@3.7/bin:${PATH}"
export PATH="/usr/local/opt/python@3.7/bin:${PATH}"
<syntaxhighlight lang='bash'>
</syntaxhighlight>


=Linux=
=Linux=

Revision as of 05:00, 14 May 2022

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