Python is a programming language that lets you work quickly and integrate systems more effectively.
Pyenv lets you easily switch between multiple versions of Python.
-
Option 1 Easy install using mac-setup:
bash <(curl -fsSL raw.githubusercontent.com/monsieurborges/mac-setup/master/install) python310
-
Option 2 Install on your own:
-
Install pyenv:
brew install pyenv
-
Install pyenv-virtualenvwrapper :
brew install pyenv-virtualenvwrapper
-
Init Pyenv:
eval "$(pyenv init -)"
-
List the available Python versions:
pyenv install --list
-
Install the Python versions you want using the example below:
# Python 3.10.7 PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.10.7
-
-
Set the default Python version:
pyenv global 3.10.7
-
Set up the virtualenvwrapper:
pyenv virtualenvwrapper