Python Versions: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
This page document how to deal with multiple Python versions on the same system. <code>[[pyenv|pyenv]]</code> is a tool that deals with that. | This page document how to deal with multiple Python versions on the same system. <code>[[pyenv|pyenv]]</code> is a tool that deals with that. | ||
=Python Version Management with Brew= | =Python Version Management with Brew= |
Revision as of 21:55, 2 November 2023
Internal
Overview
This page document how to deal with multiple Python versions on the same system. pyenv
is a tool that deals with that.
Python Version Management with Brew
Install a Specific Version
brew install python@3.12
Update a Specific Version to a Newer Patch Level
brew upgrade python@3.12
pip relationship to Python Version
Multiple Python Versions
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}"