-
Notifications
You must be signed in to change notification settings - Fork 0
Pyenv
Shamik edited this page Jan 11, 2024
·
9 revisions
curl https://pyenv.run | bash
exec "$SHELL"
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-dev
pyenv update
# pyenv install <python version>
pyenv install miniconda3-3.7-4.12.0
To 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