How to Install and Run Multiple Python Versions on Ubuntu/Debian | pyenv & virtualenv Setup Tutorial

preview_player
Показать описание
This video will show you how to install and run different Python versions on Ubuntu and Debian Linux using pyenv. You will learn to seamlessly switch between multiple Python versions and set specific Python versions for dedicated folders. Additionally, we will set up virtual environments (virtualenv) for your Python projects and use them in Visual Studio Code.

Recording Gear

⏰ Timestamps:
0:00 Intro
0:58 Install pyenv on Ubuntu/Debian Linux
2:29 Install Python through pyenv
3:31 Set global Python version with pyenv
4:25 Install latest Python release candidate with pyenv
5:08 Set a specific Python version for a project
5:49 Using Python virtual environments with pyenv
7:03 Use Python virtual environments in VSCode
8:19 Outro
Рекомендации по теме
Комментарии
Автор

For anyone getting the error: 'Unable to locate package python-openssl' - you can run the following command in your terminal:

sudo apt install python3-openssl

tomnewton
Автор

Finally a no nonsense, to the point tutorial. Hope others will soon follow this format. Many thanks for the tutorial man 🙏

AKhan-ozhw
Автор

Thank you for this excellent guide and thank you to everyone who contributed to Pyenv. I just overcame a problem with a set-up script that is really picky about the python version used. Naturally, I encountered this problem while I'm in a hurry, so Pyenv really saved my bacon.

MrOttman
Автор

To be honest first time dealing with Linux one the things that frustrated me was the installation of python globally that I almost went back to windows but this tutorial did ti right you deserve more recognition

Bad_Bnes
Автор

this is the only video I've found that actually explains this clearly without skipping steps, thank you good sir.

carlosduclaud
Автор

I have been looking for installing different version of python on ubuntu 20.04, i found some but whenever i did update-alternatives the terminal wouldn't start. This tutorial was the exact thing that i was looking for, it helped me alot. Thank you so much!

adityakulkarni
Автор

Sir, How to fix this problem 'Unable to locate package python-openssl' ?

vuthyyib
Автор

Thank you very much Konze !! Clear and simple. Exactly what I needed.

bernardleclerc
Автор

Thanks a lot for the amazing tutorial! I followed every step, but I have one question: how to solve pylance 'missing import' even after 'pip install' on .venv?

sillywalker
Автор

How to open Pycharm with command line.. please guide

tamkeensheikh
Автор

very elegant solution and great video, thank you

philumen
Автор

My system's apt is not able to find python-openssl ('Unable to locate package python-openssl').
I went ahead and skipped the package, would there be problems related to this?

joshuaamaral
Автор

I'm getting an error in ubuntu 22 "E: Unable to locate package python-openssl"

jobinnelson
Автор

I'm getting an error while running the 1st command
ERROR: ```E: Unable to locate package python-openssl```
I have already downloaded python3-openssl but its not working.
Can anyone help?

aprakashdiy
Автор

when I use python -V to check the version after setting the global or local version to the one I installed it still shows version 2.7.17

jakeislavic
Автор

Thanks for the video ! Btw you can just ‘source ~/.bashrc’ instead of closing and reopening a terminal.

slash
Автор

Can anyone help?
I am trying to install Automatic1111 which requires python 3.10

Installed Python-3.10.0 to
* system (set by /home/anarcho/.pyenv/version)
3.10.0
pyenv: python: command not found

I tried python -m venv .venv in both the home directory and in the stable diffusion root folder?

barkingbandicoot
Автор

thanks for this Konze
but
when i write cd "python test"/
its back with wrong or error
there is any help with that

ahmedatia
Автор

I have python installed and I even changed the pyenv global. However, when I write python --version it shows "command python not found." What should I do?

kamilkashif
Автор

exactly what i was looking for. thanks mate!

jageerthanjegadeeswaran