Skip to content

Instantly share code, notes, and snippets.

@hideojoho
Created December 26, 2017 08:12
Show Gist options
  • Save hideojoho/9093d252ec4823b73a905545542c2b63 to your computer and use it in GitHub Desktop.
Save hideojoho/9093d252ec4823b73a905545542c2b63 to your computer and use it in GitHub Desktop.
MacOSにJupyter Notebookをインストールする方法

MacOSにJupyter Notebookをインストールする方法

Homebrew(パッケージ管理ソフト)のインストール

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

pyenvのインストール

$ brew install pyenv

pyenv環境の自動読み込み設定追加

$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
$ exec "$SHELL"

miniconda(Python)のインストール

$ pyenv install miniconda3-latest

デフォルトPythonの変更

$ pyenv global miniconda3-latest

Pythonライブラリのインストール

$ conda install jupyter pandas matplotlib
$ pip install janome

Jupyter Notebookの起動

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