Created
November 8, 2018 10:01
-
-
Save ytspar/ebd18b8c8d2b4c6fdf6efa9dc63596d1 to your computer and use it in GitHub Desktop.
Install Python with Pyenv on Ubuntu (16.04)
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
sudo apt-get update | |
sudo apt-get install build-essential git libreadline-dev zlib1g-dev libssl-dev libbz2-dev libsqlite3-dev | |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | |
# may need this, but install script above should handle it; and yeah, you can do multiline inserts with awk/sed or whatever | |
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(pyenv init -)"' >> ~/.bashrc | |
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
pyenv install 3.6.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much! ❤️