Skip to content

Instantly share code, notes, and snippets.

@shoya140
Last active August 9, 2018 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shoya140/90736e140753a41df9180f53fc61d82a to your computer and use it in GitHub Desktop.
Save shoya140/90736e140753a41df9180f53fc61d82a to your computer and use it in GitHub Desktop.
macOSにPythonの環境を構築する方法

Install Homebrew

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

Install Miniconda

$ brew install Caskroom/cask/miniconda
$ echo PATH="/usr/local/miniconda3/bin:$PATH" >> ~/.bash_profile
$ source ~/.bash_profile

Install Python libraries

$ conda install numpy scipy pandas scikit-learn matplotlib jupyter
$ echo backend : TkAgg > ~/.matplotlib/matplotlibrc

Check

$ jupyter notebook

=> Jupyter Notebook starts if all installations are completed

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