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
  1. Option 1: Brew it!

Using Home-brew

To install a package (or Formula in Homebrew vocabulary) simply type:

$ brew install <formula>

To update Homebrew's directory of formulae, run:

$ brew update

Homebrew keeps older versions of packages installed, in case you want to roll back. That rarely is necessary, so you can do some cleanup to get rid of those old versions:

$ brew cleanup

To see what you have installed (with their version numbers):

$ brew list --versions
PreviousOption 1: Brew it!NextPython with Homebrew

Last updated 7 years ago