sudo apt install curl libssl-dev liblzma-dev libbz2-dev libsqlite3-dev libffi-dev tk-dev
curl https://pyenv.run | bash
cat >> ~/.bashrc <<EOF
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
EOF
# install python
pyenv install 3.12.1
# install venv
pyenv virtualenv 3.12.1 myenv
pyenv activate myenv
pip install ipython
Created
May 21, 2024 06:16
-
-
Save chrplr/bb0e9212ba7ad9e095dc0db02c2ab255 to your computer and use it in GitHub Desktop.
pyenv installation under ubuntu 22.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment