Last active
March 18, 2025 14:40
-
-
Save czuger/a51bb969594e3cf2ea0484c330060c97 to your computer and use it in GitHub Desktop.
Full install of pyenv + virtualenv for ubuntu/debian
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 upgrade -y | |
sudo apt-get install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev -y | |
sudo apt-get install libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev pkg-config liblzma-dev git -y | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
cd ~/.pyenv && src/configure && make -C src | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(pyenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv | |
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
# pyenv install 3.9.2 | |
# pyenv virtualenv 3.9.2 my_env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment