Skip to content

Instantly share code, notes, and snippets.

@mediaczar
Created October 15, 2019 14:42
Show Gist options
  • Select an option

  • Save mediaczar/ea9bf02ae34b2bbae8b3ba8ec985a5f5 to your computer and use it in GitHub Desktop.

Select an option

Save mediaczar/ea9bf02ae34b2bbae8b3ba8ec985a5f5 to your computer and use it in GitHub Desktop.
Installing python on fresh Mac

Set up for Python

Consider installing iTerm2

There’s nothing wrong with the Terminal, but iTerm2 https://www.iterm2.com/

Install command line developer tools

xcode-select --install

Install separate version of python

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

brew install python

Full overview

Update .bash_profile

export PATH=/usr/local/bin:/usr/local/sbin:$PATH

Use #!/usr/bin/env python for scripts

Consider installing IPython

IPython provides a better shell and the Jupyter notebook.

Alternatively, for data analysis, install Anaconda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment