Cory's Wiki

Python Environments

Configure pipenv and ipython like from python cheat sheet.

  • the MacOS system Python is /usr/bin/python
  • Homebrew Python(s) will be located in /usr/local/bin/
  • Pythons installed as an Apple application live in /Library/Frameworks/Python.framework/

Managing Multiple Pythons

pyenv

Use pyenv, as pipenv will play nicely with it.

$ brew update
$ brew install pyenv
$ pyenv install 3.6.5
$ pyenv install 3.5.0
$ pyenv versions
Homebrew Install by Commit ID

Python 3.6.5_1

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb

Python 3.5.2_3

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ec545d45d4512ace3570782283df4ecda6bb0044/Formula/python3.rb

Switch

brew switch python 3.6.5