Configure pipenv and ipython like from python cheat sheet.
/usr/bin/python
/usr/local/bin/
/Library/Frameworks/Python.framework/
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
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