Last active
August 14, 2016 00:54
-
-
Save shinob/7c3f3c46056b5cae6ba71bf456f64c80 to your computer and use it in GitHub Desktop.
macOS SierraでJupyter Notebookを使った機械学習環境を手っ取り早く作る手順 with anaconda ref: http://qiita.com/mix_dvd/items/d915752215db67919c06
This file contains 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
if [ -f ~/.bashrc ] ; then | |
. ~/.bashrc | |
fi |
This file contains 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
$ git --version |
This file contains 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
git version 2.8.4 (Apple Git-73) |
This file contains 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
$ pip install seaborn |
This file contains 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
$ git clone --recursive https://github.com/dmlc/xgboost | |
$ cd xgboost | |
$ cp make/minimum.mk ./config.mk | |
$ make -j4 | |
$ cd python-package | |
$ python setup.py install |
This file contains 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
$ cd Download | |
$ unzip IPAfont00303.zip | |
$ mv IPAfont00303/*.ttf ~/.pyenv/versions/anaconda3-4.1.0/lib/python3.5/site-packages/matplotlib/mpl-data/fonts/ttf/ | |
$ rm ~/.matplotlib/fontList.*.cache |
This file contains 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
$ jupyter notebook |
This file contains 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
$ mkdir notebook | |
$ cd notebook | |
$ jupiter notebook |
This file contains 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
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
$ echo 'eval "$(pyenv init -)"' >> ~/.bashrc | |
$ exit |
This file contains 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
$ pyenv -v | |
pyenv 20160629-19-ga761ff6 |
This file contains 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
$ vi .bash_profile |
This file contains 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
$ pyenv install anaconda2-4.1.0 | |
$ pyenv rehash | |
$ pyenv global anaconda2-4.1.0 | |
$ echo 'export PATH="$PYENV_ROOT/versions/anaconda2-4.1.0/bin/:$PATH"' >> ~/.bashrc | |
$ exit |
This file contains 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
$ pyenv install -l | grep anaconda |
This file contains 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
$ pyenv install anaconda2-4.1.0 | |
$ pyenv rehash | |
$ pyenv global anaconda2-4.1.0 | |
$ echo 'export PATH="$PYENV_ROOT/versions/anaconda2-4.1.0/bin/:$PATH"' >> ~/.bashrc | |
$ exit |
This file contains 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
$ pyenv install anaconda3-4.1.0 | |
$ pyenv rehash | |
$ pyenv global anaconda3-4.1.0 | |
$ echo 'export PATH="$PYENV_ROOT/versions/anaconda3-4.1.0/bin/:$PATH"' >> ~/.bashrc | |
$ exit |
This file contains 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
$ python -V | |
Python 3.5.1 :: Anaconda 4.1.0 (x86_64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment