Learn how to install Python with Pyenv on Linux easily and quickly! In this video, we show you step-by-step how to download, install, and configure Pyenv to manage Python versions on your Linux system. We cover all the necessary details to ensure you have a flexible and ready-to-use development environment. Ideal for beginners and experienced developers who need to manage multiple Python versions on the same system.
Python website:
https://www.python.org/downloads/
Manual installation:
https://python.org.br/instalacao-linux/
If you don't install Python, run this command:
Website (https://github.com/pyenv/pyenv/issues...)
sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Commands:
which python3
python --version
Create symbolic link:
cd /usr/bin
ln -s python3.12.3 python
Note: replace python3.12.3 with the older version installed on your operating system.
✅ PYENV:
https://github.com/pyenv/pyenv-installer
Commands:
sudo apt install curl git
curl https://pyenv.run | Bash
After installing, add this command to your .bashrc file:
sudo nano ~/.bashrc
paste this command: export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
Control + O to save
Control + X to exit
Update the shell: source ~/.bashrc
Check the pyenv version: pyenv --version
Install Python version 3.12.4: pyenv install 3.12.4
Use the downloaded version: pyenv global 3.12.4
List all versions: pyenv install -l
To update pyenv: pyenv update
#pyenv #python #pythonprogramming #code #vscode #vscodeextensions #linux #ubuntu
On this page of the site you can watch the video online Learn how to install Python with pyenv on Linux. with a duration of hours minute second in good quality, which was uploaded by the user PyFlet 17 July 2024, share the link with friends and acquaintances, this video has already been watched 543 times on youtube and it was liked by 18 viewers. Enjoy your viewing!