How to Install and Run Multiple Python Versions on macOS | pyenv & virtualenv Setup Tutorial

preview_player
Показать описание
This video will show you how to install and run different Python versions on macOS 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:55 Install pyenv on macOS
3:22 Install Python through pyenv
4:52 Set global Python version with pyenv
5:37 Install latest Python release candidate with pyenv
6:27 Set a specific Python version for a project
7:17 Using Python virtual environments with pyenv
8:45 Use Python virtual environments in VSCode
10:12 Outro
Рекомендации по теме
Комментарии
Автор

I spent 6 hours finding the solution. Then, I found your video. Thank buddy

muhammadhummayunyousaf
Автор

Brilliant. Thanks so much. Clear, concise, correct!

timothygrupp
Автор

Virtual environments and different python versions were the bane of my existence until this video. Thanks mate!

ianjeffries
Автор

Super helpful video! Was looking for something similar to NVM for Python and this fit the bill perfectly!

nelsonfleig
Автор

Thank you so much for this brilliant video and the helpful blog post! It is by far the clearest and most complete explanation I've found.

HannahRobinsonNZ
Автор

Thank you for your clear explanation of how to manage python versions. First rate.

mistersquid
Автор

Thanks for the great video. I have this running on macOS, Win11, and Mint Linux!

richardrandolph
Автор

I get "BUILD FAILED (OS X 12.3 using python-build 20180424)" error with any version of 3.6.x to 3.9.x

parhamfa
Автор

thanks! very detailed and helpful! you got yourself a new follower today

marrufomcbo
Автор

Very well explained I wish I found this when I needed it 4 months ago :(

BlancoYT
Автор

Why didn't we use pyenv-virtualenv?

alwayserik
Автор

Tried to installed 3.7.2. getting this Error

BUILD FAILED (OS X 12.6 using python-build 2.3.5-16-ge0311823)

Inspect or clean up the working tree at
Results logged to

surajmatta
Автор

Hi @k0nze, thanks for the great content. Is is very helpful

MohammedJiménez-zd
Автор

It was really helpful. well explained as well.

talhaahmed-nbtk
Автор

Hello, K0onze
After following your video step by step and installing python with pyenv i got following error in python console in pycharm: "pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled (internal generated filenames are not absolute)"
how can i fix it?

ilushasm
Автор

@k0nze_builds, what is the purpose of this command -> "xcode-select --install"

IbrahimKaleel-jpel
Автор

Very weel explained!
Which Is the terminal do you use with colored branches?

MicheleSblendorio
Автор

Gracias excelemte video, me acabas de salvar y ahorrarme futuros dolores de cabeza

jpablomayorga
Автор

K0nze what if i already executed the command: "pip3 install virtualenv" and it works?... but when i execute pyenv doesnt works... can i still aproach your solution ???

robertoenriquegarciamartinez
Автор

Hi k0nze, thank you so much for this video, it is so helpful! At 5:08 you mention the pyenv global code, for some reason this doesn't work for me. If I enter pyenv versions, my chosen python version shows, but as soon as I use the global code and open a new terminal, it doesn't show my chosen python version. Do you know why?

darkredtulip