Python Tutorial: VENV (Windows) - How to Use Virtual Environments with the Built-In venv Module

preview_player
Показать описание
In this Python Programming Tutorial, we will be learning how to use virtual environments on the Windows operating systems with the built-in venv module. We will learn how to create them, activate them, remove them, and much more. Let's get started...

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:

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

In my older virtualenv video, I got a ton of requests to show how to use virtual environments on Windows. I hope this helps!

coreyms
Автор

pip list > 2:13
python -m venv project_env > 2:29
> 3:24
where python > 3:46
pip install requests > 4:48
pip install pytz > 5:00
pip list >
pip freeze > 5:47
--> copy information 'pip freeze'
--> create requirements.txt > 6:37
--> paste information there
deactivate > 7:16
rmdir project_env /s > 7:33

>> NEW PROJECT <<

mkdir my_project > 8:48
python -m venv my_project\venv > 8:55

pip install -r requirements.txt > 9:46
cd my_project > 10:50
--> create new file 'script.py'
deactivate >
rmdir venv /s >
python -m venv venv --system-site-packages > 13:30
venv\Scripts\activate.bat >
pip list >
pip install SQLAlchemy
pip list --local

matiasgomez
Автор

Thank you for this tutorial! I couldn't figure out how to use VENV on my own, even though I read a book called " Test Driven Development" because the author explained how to use VENV on mac. Corey, you're the man!

gxhkgtk
Автор

This has been so helpful! My class focused mostly on programming, and so we didn't really understand what we were doing during setup, but your videos make it very clear and easy! Thank you!

doneenhesse
Автор

Corey...You are the Guru of python world..thanks a lot for sharing your knowledge as always!

Capt_X
Автор

This is just perfect. I had been looking to understand venv for quite sometime now, and this clears it all. Great job!!!

pragatisingh
Автор

This is the best venv tutorial that I've ever seen. Its bookmarked in my browser for over 1.5 years now. I get back to it whenever I miss something. Thanks man (y)

SamarHussain
Автор

This is exactly what I needed just now for my project which is rapidly growing in complexity. Thanks Corey!

simonolofsson
Автор

Great tutorial! I am a hobbyist programmer, not an expert. I have been learning my self and this really helped.

parthzala
Автор

This is the best video I've seen this year so far!!! I might be exaggerating but you sir have helped me solve a problem I was working on for the last 20+ hrs!

micahjesse
Автор

Thank you so much! I’ve searched and read and tried everything on the net on how to set up venv but this is the only one that worked.

hangfirers
Автор

Corey, I watched lot of videos about the environment and virtual environment but could not understand. Your explanations technique is the best. Thanks.

JSRAumDhyanam
Автор

This was great. I was thinking of questions as the video moved along and then you ended up answering them all. Great work Corey.

bryanaguilar
Автор

Thank you Corey for this excellent video on virtual environments. I needed it. You do not assume anything as known and this is very good, especially for beginners. For me, the best explanation on this topic I found!

mihaigrigore
Автор

Many thanks for this tutorial. You have saved me from what I spent a whole weekend trying to figure out.

ayodele_great
Автор

i was totally confuse and frustrated just before completing the 17 minutes of this video
honestly i feel really relief now..
you got a new fan now
thank you...

kelvinokelvino
Автор

This is a simple and straight to the point tutorial. Well done man.
You've just gotten a subscriber.

ife_jeremiah
Автор

Thank you Corey, I almost gave up trying to work with venv, until i saw this brilliant post...

ronilif
Автор

Yet another video from maestro Schafer that makes difficult subject looks pretty easy.
Respect!

rVnikov
Автор

This guy is a real instructor. Great work a lot of effort there thank you

drissaitkassimusic