Python Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:


Installs in <code>/usr/local/Cellar/python@3.7</code> while preserving the current <code>/usr/local/Cellar/python@3.9</code>.
Installs in <code>/usr/local/Cellar/python@3.7</code> while preserving the current <code>/usr/local/Cellar/python@3.9</code>.
This version is not symlinked in <code>/usr/local/bin</code>. To use it:
<syntaxhighlight lang='bash'>
export PATH="/usr/local/opt/python@3.7/bin:${PATH}"
<syntaxhighlight lang='bash'>


=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}"
<syntaxhighlight lang='bash'>

=Linux=
<syntaxhighlight lang='bash'>
yum install python3