Last active
October 3, 2019 02:55
-
-
Save lorne-luo/2f141f11259a867b80c1c3f33d0b0fe5 to your computer and use it in GitHub Desktop.
Centos7 init
This file contains hidden or 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
# os lib | |
sudo yum update | |
sudo yum groupinstall "Development Tools" | |
sudo yum install -y gcc gcc-c++ git zlib zlib-devel libffi-devel openssl-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel findutils | |
# pyenv | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile | |
. ~/.bash_profile | |
# pyenv-virtualenv plugin | |
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv | |
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile | |
exec "$SHELL" | |
pyenv install 3.6.9 | |
pyenv global 3.6.9 | |
# sudo ln -s ~/.pyenv/versions/3.6.9/bin/python /usr/bin/python | |
# sudo ln -s ~/.pyenv/versions/3.6.9/bin/pip /usr/bin/pip | |
# pyenv virtualenv 3.6.9 hawkeye | |
# pyenv local hawkeye | |
# pyenv activate hawkeye | |
# global pip install | |
pip install cookiecutter awscli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment