Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Last active September 10, 2020 08:56
Show Gist options
  • Save dasgoll/e29999d42ce860c06476 to your computer and use it in GitHub Desktop.
Save dasgoll/e29999d42ce860c06476 to your computer and use it in GitHub Desktop.
## install pyenv on ds dev cluster
yum -y install git gcc readline-devel zlib-devel bzip2-devel sqlite-devel openssl-devel
git clone git://github.com/yyuu/pyenv.git /usr/local/pyenv
chmod -R 777 /usr/local/pyenv/
echo 'export PYENV_ROOT=/usr/local/pyenv' >>/etc/profile
echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> /etc/profile
echo 'eval "$(pyenv init -)"' >> /etc/profile
echo 'pyenv global 2.7.7' >> /etc/profile
. /etc/profile
pyenv install -v 3.7.3
#pyenv global 3.7.3
#pyenv rehash
chmod -R 777 /usr/local/pyenv/
. /etc/profile
pip install ipython
pip install ipython[notebook]
pip install pyzmq
pip install jinja2
pip install tornado
ipython notebook --ip=0.0.0.0 & # binds to port 8888
easy_install virtualenv
virtualenv --python=/root/.pyenv/versions/2.7.6/bin/python myenv1
source myenv1/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment