(Scientific) Python on a new Mac
UPDATE: trying this on a new computer in June of 2017. Failing to get --with-python3
to work, and the python tap seems to be gone.
Sasha just asked about this, and then I realized I was saving a list in my shiny new data repo README at work. I emailed her that list and she suggested a blog post. It was great to be asked this while it was still fresh in my mind.
A few notes:
Everyone told me that the science/math/computing Python libs were happy with Python 3 so seemed like a good time to switch over
I just saw the brew tap
command for the first time when I was googling all this.
same for --with-python3
and then pip3
Basics:
- brew install postgresql
- brew install python3
- brew tap Homebrew/python
- brew install numpy --with-python3
- brew install matplotlib --with-python3
- brew install scipy --with-python3
- brew install scikit --with-python3
- brew install scikit-learn --with-python3
- brew install leiningen
- pip3 install scikit-learn
- pip3 install pandas
- pip3 install jupyter
Survival Analysis:
- pip3 install lifelines
ggplot and prereqs
- pip3 install patsy
- pip3 install statsmodels
- pip3 install brewer2mpl
- pip3 install ggplot
What other scientific libs should I definitely have?
Am I going to run into any gotchas in Python 3?