[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 940 Bytes

install-python-versions-on-macos-2020-04-28.md

File metadata and controls

46 lines (34 loc) · 940 Bytes

Install python versions on macOS

  1. you need pyenv
brew install pyenv
  1. add pyenv path
echo 'export PATH="$(pyenv root)/shims:$PATH"' >> ~/.zshrc
  1. install python version
pyenv install --list | grep 3.X.Y
pyenv install 3.X.Y
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.X.Y.tar.xz...
-> https://www.python.org/ftp/python/3.X.Y/Python-3.X.Y.tar.xz
Installing Python-3.X.Y...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
Installed Python-3.X.Y to /Users/<user>/.pyenv/versions/3.X.Y
  1. list installed python versions
pyenv versions
  1. if you want to change the default version
pyenv global 3.X.Y

Source: https://installvirtual.com/how-to-install-python-3-8-on-mac-using-pyenv/