Skip to content

Instantly share code, notes, and snippets.

@aonotas
Last active September 8, 2017 10:15
Show Gist options
  • Save aonotas/17f7bd46561d07687531291abad15127 to your computer and use it in GitHub Desktop.
Save aonotas/17f7bd46561d07687531291abad15127 to your computer and use it in GitHub Desktop.

You Should load .bash_profile file when you login your sever.

cd /cl/work/hamada-n/
source /cl/work/hamada-n/.bash_profile

install pyenv

git clone https://github.com/yyuu/pyenv.git /cl/work/hamada-n/.pyenv
git clone https://github.com/yyuu/pyenv-pip-rehash.git /cl/work/hamada-n/pyenv-pip-rehash
git clone https://github.com/yyuu/pyenv-virtualenv.git /cl/work/hamada-n/pyenv-virtualenv

write enviroment setting

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> /cl/work/hamada-n/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> /cl/work/hamada-n/.bash_profile
echo 'eval "$(pyenv init -)"' >> /cl/work/hamada-n/.bash_profile
export PYENV_ROOT="/cl/work/hamada-n/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"


GPU setting

echo 'export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}' >> /cl/work/hamada-n/.bash_profile
echo 'export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}' >> /cl/work/hamada-n/.bash_profile
echo 'export CUDA_HOME=/usr/local/cuda' >> /cl/work/hamada-n/.bash_profile

install pip like tensorflow

pyenv install 2.7.11
pyenv global 2.7.11
pip install numpy scipy six Cython ipython
pip install chainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment