Last active
July 29, 2019 08:54
-
-
Save Den1al/3626ebb02dc992f41e8c6f8613530ddf to your computer and use it in GitHub Desktop.
Pyenv Bootstrap
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
# pyenv | |
sudo apt-get install -y --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc | |
source ~/.zshrc | |
pyenv install 3.7.4 | |
pyenv global 3.7.4 | |
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv | |
# In order for pyenv to work on sudo, change the following in /etc/sudoers | |
# /etc/sudoers: Defaults secure_path="/home/ubuntu/.pyenv/shims/:..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment