Hey Corey, thank you as always, i was trying to debug a Python for loop and was not sure if you talk about it anywhere. Also realized that sublime text 3 does not actually feature a python debugger, would appreciate your thoughts on this.
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!
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!
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 man..... thank you...
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)
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!
Corey, I watched lot of videos about the environment and virtual environment but could not understand. Your explanations technique is the best. Thanks.
in short (i am assuming you have activated virtual environment) type: pip freeze (you will see all requirements) copy all to requirements.txt (16:40 observe copying process carefully) //(make sure requirements.txt is in project folder) type: deactivate (venv will be deactivated) type: pip install -r . equirements.txt (all requirements will be installed) type:.\venv\Scripts\Activate.ps1 (activating environment)
Thanks @Corey Schafer. trying to follow some Django tutorial on TH-cam but just couldn't activate the virtual env, windows would accept the CMD but won't activate the venv : Setup: win 10, gitbash, python 3.7 Create the venv: python -m venv my_dir Activate the venv: source my_dir/Scripts/activate Stackoverflow to the rescue. Love your work btw thanks from the rest of us.
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!
The single most important Python tutorial since Python's existence. Virtual environments are the most effective anti-hair loss treatment ever invented :)
Thank you Corey, you actually explained away all the questions a noob like me came with. Things I just didn't understand and most videos skip, I guess cuz its obvious to the creator. Very helpful tutorial 🙏 thank u
Sir, you're just best. If anyone wants to automate the creation of requirements.txt file then just type in this: *pip3 freeze > requirements.txt* It will automatically save that.
Thank you so much Corey for making these wonderful videos. They are all easy to understand and follow. I learn so much from them. I will join patreon to contribute to the group. Thank you for all you do!
This video was great for me, I'm just learing python for the first time and as a windows user it was easy to follow the steps, congratulations. It would be great if you are able to add the english subtitles in the video because as me that I'm not an english person many other people could watch the video easer reading the subtitles
Just to add something to this great tutorial. we can dump the result of "pip freeze" into "requirements.txt" file by doing pip freeze > requirements.txt removing the need to copy the pip freeze results manually.
Lol. I like Google's algorithms. Today I was looking for "how to launch virtual environment" to use Django and now this is in my recommendations. (Sorry for my bad English and hello from Russia)
I know right. They didn't used to have all this info for coding. It's the one thing Google actually gets right. Which shows they know how to recommend content. (This is significant because normally they suppress content) (They normally suppress any good non coding related content like debates bloodsports, shitposting channels etc etc, But coding info they've been very good at)
Great. Finally even me understood this stuff. I'd have a question. When I use venv and when I should use docker? A tutorial of this kind for docker would be awesome. Thanks a lot.
In my older virtualenv video, I got a ton of requests to show how to use virtual environments on Windows. I hope this helps!
Hey Corey, thank you as always, i was trying to debug a Python for loop and was not sure if you talk about it anywhere. Also realized that sublime text 3 does not actually feature a python debugger, would appreciate your thoughts on this.
Thank you for all your videos. You should do one someday for pipenv!
And multiprocessing/multithreading
And sockets!
@@guipa I already have one for Pipenv. You can find that here: th-cam.com/video/zDYL22QNiWk/w-d-xo.html
pip list > 2:13
python -m venv project_env > 2:29
project_env\Scripts\activate.bat > 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 8:48
python -m venv my_project\venv > 8:55
my_project\venv\Scripts\activate.bat
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
should get pinned
The second hero after Corey Schafer :)
Thank you sir.
great job mate, thanks!
Is there any way to find out my existing virtual env?
Corey...You are the Guru of python world..thanks a lot for sharing your knowledge as always!
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!
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!
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 man.....
thank you...
This is a simple and straight to the point tutorial. Well done man.
You've just gotten a subscriber.
This is just perfect. I had been looking to understand venv for quite sometime now, and this clears it all. Great job!!!
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)
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!
This is exactly what I needed just now for my project which is rapidly growing in complexity. Thanks Corey!
Corey, I watched lot of videos about the environment and virtual environment but could not understand. Your explanations technique is the best. Thanks.
You are the best I have been like 2hour trying to figure it out , and with you it took like 1min
This was great. I was thinking of questions as the video moved along and then you ended up answering them all. Great work Corey.
He does that doesn't he. One of the most clear videos on venv.
This video saved me in setting up venv in windows, still relevant in 2021
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.
Thank you Corey, I almost gave up trying to work with venv, until i saw this brilliant post...
jesus you don't know how much this helped me. All tutorials I've watched were done on Mac haha
Thank you so much for resolving the issue. other videos on TH-cam wasted my time.
in short
(i am assuming you have activated virtual environment)
type: pip freeze
(you will see all requirements)
copy all to requirements.txt (16:40 observe copying process carefully)
//(make sure requirements.txt is in project folder)
type: deactivate
(venv will be deactivated)
type: pip install -r .
equirements.txt
(all requirements will be installed)
type:.\venv\Scripts\Activate.ps1
(activating environment)
I really needed this video.
Thanks Corey!!
This guy is a real instructor. Great work a lot of effort there thank you
Great tutorial! I am a hobbyist programmer, not an expert. I have been learning my self and this really helped.
Yet another video from maestro Schafer that makes difficult subject looks pretty easy.
Respect!
Many thanks for this tutorial. You have saved me from what I spent a whole weekend trying to figure out.
Thanks @Corey Schafer. trying to follow some Django tutorial on TH-cam but just couldn't activate the virtual env, windows would accept the CMD but won't activate the venv :
Setup: win 10, gitbash, python 3.7
Create the venv: python -m venv my_dir
Activate the venv: source my_dir/Scripts/activate
Stackoverflow to the rescue. Love your work btw thanks from the rest of us.
This guy is the GOAT, simple and easy tutorials! This helps alot!
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!
This is a very good video to learn venv module in short time. I appreciate your work.
Most simplest explanation there can ever be! 100000%
Pretty much what the rest of the comments say - great video and thanks once again!
Very good one! Thank buddy. I like your videos. Your attitude and way of passing the stuff to your viewers is just excellent.
@ 3:34 my issue was solved thanks for the content!
You are talking very fast, but you covered everything important to know. Many Thanks for that
Super helpful. Clear, concise, to the point. Thx much, m8.
Good video, cleared a lot up. The programming is easier than the setup.
This video is a simplified as a sip on a cup of coffee thank you so much Corey
Great videos Corey. You are the go to when I am looking to understand something python. Thanks for helping the community!
This video really helps me a lot. Hope you'll make more videos like that.
The single most important Python tutorial since Python's existence. Virtual environments are the most effective anti-hair loss treatment ever invented :)
My man...I've been struggling with this. Great video. Thank you so much.
Even after 4 years, it is still a valid a video 😍
Never found a more fitting video to my problem, thanks a lot!!
Thank you Corey, you actually explained away all the questions
a noob like me came with. Things I just didn't understand and most videos
skip, I guess cuz its obvious to the creator. Very helpful tutorial 🙏 thank u
Thank you for sharing! saves a ton of time, trying to search for solutions on your own
Thanks Corey for creating this, I think every TH-cam turorial uses Mac, and I could not find a decent source for learning Virtual Environments...
you are awesome i don't have words to describe how helpful this video was thanks alooot man
This is very well explained and easy to follow. Thanks for the tutorial!
This was so helpful and concise. Thank you very much from a Python (heck, programming in general) noob!
Thank you so much, love how simple and clear this tutorial is! :)
This is helpful Corey, comprehensive and good phase!
Thank you! That was the best explanation I encountered on TH-cam!
This is the best video on the subject of python virtual environment! Thank You .
Amazing tutorial - No one explains it like you do Corey!
Thx Corey! This video is still helping me out in 2022
Best video to understand Virtual Environments Corey the messiah ! UwU
Thank you for this, you are the foundation of whatever i do or develop related to python
Sir, you're just best.
If anyone wants to automate the creation of requirements.txt file then just type in this:
*pip3 freeze > requirements.txt*
It will automatically save that.
Thank you so much Corey for making these wonderful videos. They are all easy to understand and follow. I learn so much from them. I will join patreon to contribute to the group. Thank you for all you do!
Thanks! That’s a huge help!
Best venv tutorial hands down. Thank you. Subscribed :)
Your videos are the best. Thanks for sharing your knowledge.
Loved the solution finally my problem is solved.. bless you man.
Incredibly useful! Big thanks for detailed description and instructions
Man, you are just amazing. Very clear explanations. Saved me a lot of trouble.
This video was great for me, I'm just learing python for the first time and as a windows user it was easy to follow the steps, congratulations. It would be great if you are able to add the english subtitles in the video because as me that I'm not an english person many other people could watch the video easer reading the subtitles
Awesome Man . You are awesome Corey . Thanks a ton . I love the way you make things simpler .
Thank you, that was really informative! Clears up questions.
Very helpful and you make it very intuitive, thank you!
If I could like the video 10x I would, thanks bro
Thanks Corey Schafer, it was a very helpful tutorial!
Awesome and Easily understandable explaination.
You are the best instructor!
Great job. I found this very helpful.
Just to add something to this great tutorial. we can dump the result of "pip freeze" into "requirements.txt" file by doing
pip freeze > requirements.txt
removing the need to copy the pip freeze results manually.
I think he was saying this caused his command prompt to change colour hence why he didn't do it
Thanks for posting this, now I finally get how to use it in Windows :-)
you are unique, keep it up !!!!!!!!!!!!!!!!!!!!!!!!!!
Lol. I like Google's algorithms. Today I was looking for "how to launch virtual environment" to use Django and now this is in my recommendations. (Sorry for my bad English and hello from Russia)
I know right.
They didn't used to have all this info for coding.
It's the one thing Google actually gets right.
Which shows they know how to recommend content. (This is significant because normally they suppress content)
(They normally suppress any good non coding related content like debates bloodsports, shitposting channels etc etc,
But coding info they've been very good at)
Amazing and comprehensive video, Many thanks Corey.
Best tutorial for Virtual Environments!
Fantastic video!! I am so grateful for this content!! I fell like I just made a leap in my coding journey!! Thank you so much!!!
i wish i could give more than one likes to this dude.
Loved it! So detailed and clear
Thanks sir you're a blessing you're way of explanation is easy and interesting.
Very clear and super helpful, thanks a lot for this tutorial!
Lovely voice, pace and control
Thank you very much for this video :) It is very helpful and I learnt a lot!
Great video. With a lot of best practice tips, that we need to know. Thank you very much.
Well done. Straight to the point.
Excellent explanation
Thank you for showing this :)
You made it looked so easy
Very well explained. So grateful for these videos. 🙏
Great video. Really good explanation.
This has cleared up so much for me! Thanks!
Excellent tutorial, thank you! 😀
Thanks a lot for sharing this informative information beautifully
Thank you so much. In 2021 this video is really good, but i had changed the second command to "python3 -m venv project_env". Just add the 3 in python.
Great. Finally even me understood this stuff.
I'd have a question. When I use venv and when I should use docker?
A tutorial of this kind for docker would be awesome. Thanks a lot.
Very helpful. Thank you!
Thank you very much it was very useful
Great video. Really helped me alot!