Skip to content

Instantly share code, notes, and snippets.

@mychaelstyle
Last active October 10, 2018 04:02
Show Gist options
  • Save mychaelstyle/f3c89f685a01c985e86709a4733ab7c1 to your computer and use it in GitHub Desktop.
Save mychaelstyle/f3c89f685a01c985e86709a4733ab7c1 to your computer and use it in GitHub Desktop.
Install pyenv and anaconda3-5.2.0 to mac os x
#!/bin/bash
# pyenvのインストール
brew install pyenv
# anacondaのインストール
pyenv install anaconda3-5.2.0
# 環境変数の設定
cat << EOF >> ${HOME}/.bash_profile
export PYENV_ROOT=\${HOME}/.pyenv
export PATH=\${PYENV_ROOT}/bin:\${PATH}
eval "\$(pyenv init -)"
EOF
source ${HOME}/.bash_profile
# インストール確認
pyenv versions
# anaconda3利用の設定
pyenv global anaconda3-5.2.0
# jupyter notebook起動
cd
mkdir notebook
cd notebook
jupyter-notebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment