Last active
October 10, 2018 04:02
-
-
Save mychaelstyle/f3c89f685a01c985e86709a4733ab7c1 to your computer and use it in GitHub Desktop.
Install pyenv and anaconda3-5.2.0 to mac os x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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