Skip to content

Instantly share code, notes, and snippets.

@shinob
Last active August 14, 2016 00:54
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 shinob/7c3f3c46056b5cae6ba71bf456f64c80 to your computer and use it in GitHub Desktop.
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
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
$ git --version
git version 2.8.4 (Apple Git-73)
$ pip install seaborn
$ 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
$ 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
$ jupyter notebook
$ mkdir notebook
$ cd notebook
$ jupiter notebook
$ 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
$ pyenv -v
pyenv 20160629-19-ga761ff6
$ vi .bash_profile
$ 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
$ pyenv install -l | grep anaconda
$ 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
$ 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
$ 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