Skip to content

Instantly share code, notes, and snippets.

@yk-tanigawa
Last active October 1, 2016 05:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yk-tanigawa/3dc319114a5d36d3b164d17d697bfe25 to your computer and use it in GitHub Desktop.
Save yk-tanigawa/3dc319114a5d36d3b164d17d697bfe25 to your computer and use it in GitHub Desktop.

install necessary software to cluster machine

pyenv

  • download and install pyenv via github
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
  • add the following to ~/.bash_profile
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
    export PATH=${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}
    eval "$(pyenv init -)"
fi
  • reflect
$ source ~/.bash_profile
  • download and install pyenv-virtualenv plug-in
$ git clone git://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv

Anaconda

  • Anaconda comes with scientific packages
  • install anaconda with pyenv
$ pyenv versions                 # List available python versions on the machine
$ pyenv install -l               # List available python versions for installation
$ pyenv install anaconda2-4.1.1  # Install a version whatever you'd like to work with
$ pyenv rehash
  • swich python versions with pyenv
$ pyenv versions
$ pyenv global anaconda2-4.1.1
$ pyenv versions

virtualenvvwrapper

$ pip install virtualenvwrapper

Jupyter

$ pip install jupyter

connect to cluster machine (login node)

local$ ssh -L 8888:localhost:8888 servername

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment