Beginners Guide: Setting A Python Environment on M
  • Introduction
  • Update it, right away!
  • Download, download
  • Python
  • Option 1: Brew it!
    • Using Home-brew
    • Python with Homebrew
  • Option 2: Pyenv it!
    • Install and use multiple Python versions
  • Option 3: Conda it!
  • Run Python
    • Get pip!
    • NumPy-SciPy-Matplotlib
    • Get an IDE
Powered by GitBook
On this page

Option 2: Pyenv it!

PreviousPython with HomebrewNextInstall and use multiple Python versions

Last updated 7 years ago

is a simple Python version manager that can manage and install different versions of Python. But STOP!!

Did you get homebrew yet? Pynev is installed using homebrew. So first, we must install pyenv using homebrew:

$ brew install pyenv

Also remember, to upgrade pyenv in the future, use upgrade instead of install. After installing, add pyenv init to your shell to enable shims and autocompletion.

$ echo 'eval "$(pyenv init -)"' >> ~/Projects/config/env.sh

Restart your shell so the path changes take effect. You can now begin using pyenv.

$ exec $SHELL

Pyenv