Virtual Environments in Python - Crash Course

preview_player
Показать описание
In this video we learn how to create and use virtual environments in Python.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

this was exactly what i needed. It made it so simple for some reason lol. Virtual Environments are a MUST for python and now I can navigate them with no confusion

princemarkied
Автор

Thanks!
This is just what I needed <3
Very useful to test my project

albertoricardomorales
Автор

Very good explanation. All basics were straight an to the point. The virtual environment was weird for me as a fulltime javascript dev. Now I understand that its not really that different except of the changed environment variables and paths. :)

timrudenauer
Автор

Thank You so much! I was having a bit of trouble with chapter 18 in Python Crash Course 3rd editiion on creating a virtual environment.. you made it very simple to understand!!

jjar
Автор

This was nice and detailed, thank you man, you saved me from several late night headaches 😅

lightningfastthunder
Автор

excellent thanks! clear easy to understand explanation, helped a lot!

ZsoltPal
Автор

Awsome, Pretty straight forward. Thanks bro.

AMoktar
Автор

Great video. Good explanation of why needed and how to create a requirements.txt file to identify the modules to load into the environment. The only thing missing is saying what to do with the requirements.txt file after you make it. While you could just read through it and manually pip install each of the modules in the file, you can also just install all of them in one command using pip install -r requirements.txt. That is really what I came here to find and you have everything except that. Thought I would add it here so the whole process is complete.

aslynnmoore
Автор

Thanks a lot man, You're doing an amazing job!!!

A.Tantawy
Автор

Can you do a course about testing your code/classes/methods?

govinej
Автор

Great intro - thanks!

I played around on a Mac, and as far as I can tell, the following commands are used:

To create a virtual environment:

python3 -m venv <folder_name>

OR (as per this video):

virtualenv <folder_name>

Then... to activate:

source <folder_name>/bin/activate

And to deactivate:

deactivate

--

That's what worked for me.

Am I missing anything? :)

pcimring
Автор

Best tutorial for virtual environment. subscribed :)

Yash-Gaikwad
Автор

whats the difference between this and "python -m venv venv" stuff?

oguzhantopaloglu
Автор

Thank you so much sir for such a clear explanation....✨😊✨✨✨✨

tejashwini
Автор

clear on Windows - cls - or maybe CTRL+L works too?

samsung_media
Автор

So, I think I am missing something key. On my raspberry pi, runing bookworm, If I create the venv, install a library, then go to my visual studio environment, how do I make sure that the python "sees" the library in the venv ?

lundebc
Автор

after creating and activating virtual environment, how to proceed in actual coding that uses this venv

elysonpanolino
Автор

I didn't add python to path. So, when I deactivate and run pip list command, i still see the packages installed in virtual environment but not outside the folder.

sentient
Автор

@NeuralNine is the Virtualenv better than the Venv?

krzysiekkrzysiek
Автор

for some reason, I can't deactivate virtualenv, command .\Scripts\deactivate. bat doesn't do anything...?

infocus
welcome to shbcf.ru