-
Notifications
You must be signed in to change notification settings - Fork 0
Pyenv
Shamik edited this page Jan 12, 2024
·
9 revisions
sudo apt update; sudo apt install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-devcurl https://pyenv.run | bashexec "$SHELL"
pyenv update# pyenv install <python version>
pyenv install miniconda3-3.7-4.12.0pyenv latest -k <python version>
pyenv latest -k 3.8pyenv latest <python version>
pyenv latest 3.8pyenv install -lTo select a Pyenv-installed Python as the version to use, run one of the following commands:
pyenv shell <version> -- select just for current shell session
pyenv shell -- displays the current python version for current shell session
pyenv local <version> -- automatically select whenever you are in the current directory (or its subdirectories)
pyenv local -- displays the current python version whenever you are in the current directory (or its subdirectories)
pyenv global <version> -- select globally for your user account
pyenv global -- displays the current python version globally for your user account
pyenv global system -- select globally the system python for your user account