Last active
September 10, 2020 08:56
-
-
Save dasgoll/e29999d42ce860c06476 to your computer and use it in GitHub Desktop.
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
## 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