The Complete Guide to Python Virtual Environments!

  Рет қаралды 366,951

teclado

teclado

Күн бұрын

Пікірлер: 354
@matthewsales8983
@matthewsales8983 2 жыл бұрын
This turned my learning on virtual environments from “copying” to “understanding.” It’s such a gratifying feeling. Thank you. I lost sight of what I was doing in creating virtual environments and felt lost for a few days. This was so concise and clear. Again, thank you. Subbed.
@sumanthchippagiri1687
@sumanthchippagiri1687 3 жыл бұрын
This 15 minutes are extremely useful for absolute beginners to virtual environments. You can go ahead and watch it carefully. I thank you sir,Jose for speaking clearly each step you do .
@chasebledsoe7449
@chasebledsoe7449 Жыл бұрын
Best coding tutorial video I have ever watched. Super high quality, incredibly clear
@AliEgemenB
@AliEgemenB 5 ай бұрын
As a second year CS student this was great. Everything made sense. After watching this I tried conda, hated it, switched to venv. Now I'm a happy Data Science learner thanks to you.
@tecladocode
@tecladocode 5 ай бұрын
Glad it helped! Thanks for the comment!
@neila880
@neila880 2 жыл бұрын
Excellect video that helped a lot. I'd just like to add; to create a requirements.txt file easily, run: pip3 freeze > requirements.txt. That will put all of the modules and versions in a file for you to edit or use to import into another virtual environment.
@2002budokan
@2002budokan 3 жыл бұрын
Yesss! We need this kind of information. There are thousands of guys who talk about a programming language, but very few who talk about the information that enables a project to move forward, to deliver. Thanks Jose. How about a video about conda and another one to compare both?
@shreyanshtripathi4440
@shreyanshtripathi4440 2 жыл бұрын
I couldn't have found a better tutorial to get started, its really worth watching!
@lennartjongen6262
@lennartjongen6262 2 жыл бұрын
I used CTRL+SHIFT+C (when I opened my py script in VScode) to skip the first 3 steps. This video is amazing. Thank you so much!
@eleet321
@eleet321 11 ай бұрын
This was the best crash course on virtual environments I've seen. The diagrams are crystal clear and your pace is amazing. Thank you!
@tecladocode
@tecladocode 11 ай бұрын
Thank you very much! Glad you liked it 🚀
@fgaguaviva
@fgaguaviva 3 жыл бұрын
Thank you for all the content you make Jose! Having access to short video lessons of this quality is such a luck for us. By the way, I’m almost done with The Complete Python Course and I must say that it is simply amazing, congratulations for what you have achieved with that.
@tecladocode
@tecladocode 3 жыл бұрын
Thank you so much Félix! Im really happy that you’re enjoying the course! I’ll continue making short videos and series as well! 💪
@laserdiscbisque
@laserdiscbisque Жыл бұрын
I've been trying to learn to code on my own/online for nine months and this was the most valuable 15 minutes so far
@Uhtredrag1080
@Uhtredrag1080 Жыл бұрын
Wish he said what program he was running all that code in. Nothing I open on any of the python options looks like that.
@hunterdean1562
@hunterdean1562 11 ай бұрын
smashin the like button dude, best video ive seen on this and im finally understanding after years!! thank you!!
@tecladocode
@tecladocode 11 ай бұрын
Awesome, thank you! Happy to help!
@some1stoleit
@some1stoleit 2 жыл бұрын
Thank You! This is one of those topics I feel no-one really explains. So you end up banging your head against a wall while following a tutorial steps exactly and getting error messages. So it's good you manged to explain how it works and why I should use virtual environments succinctly.
@tecladocode
@tecladocode 2 жыл бұрын
Thank you very much Ronald! Understanding what’s going on behind the scenes is really useful, especially if you have to troubleshoot something 😅
@ahmedw5
@ahmedw5 3 жыл бұрын
This clarified what virtual environments are for me, thank you!
@JITCompilation
@JITCompilation 2 жыл бұрын
So when you "boot up a virtual environment", you're simply changing the system's environment variables, such as the PATH, so they point to folders in your virtual environment folder?
@sahilsagwekar
@sahilsagwekar 2 жыл бұрын
Thats the first part of the virtual environment. You also create a copy of the interpreter with the packages specific to the new venv
@JITCompilation
@JITCompilation 2 жыл бұрын
@@sahilsagwekar gotcha, thanks!
@Sylfa
@Sylfa Жыл бұрын
A tip for figuring out which version the command prompt is finding is to run the command: where python It'll return each python.exe it finds in the path in the order it would execute them, so the first line returned is the one that will run when you execute python. And now you know which folder will be the first valid python folder in your path.
@gdsimpson3
@gdsimpson3 10 ай бұрын
"Which python" for mac and linux users 👍👍
@sdmagic
@sdmagic 9 ай бұрын
This was exactly what was needed. Your explanation was crystal clear and solved a lot of problems I was having. Thank you for your expertise, time, and efforts. Cheers!
@tecladocode
@tecladocode 8 ай бұрын
Glad it helped! Thank you!
@nick8292
@nick8292 2 жыл бұрын
Thanks for the clear info. I'm a beginner and had to do a bit of Stack Overflowing to get the whole thing set up on Windows, like setting up the environment path and the execution policy. Cheers, thanks again!
@gianlucatioli6766
@gianlucatioli6766 Жыл бұрын
Incredible and Godsent video. I'am new with package installation and I was so nervous because I had absolutely no idea as to what exactly to do with virtual environment. Now, I've hit the ground running with virtual environments and some other important stuff! Much appreciated Jose!
@Frest99
@Frest99 2 жыл бұрын
Simple and clear explanation. Now I know what i'm doing and don't just copy and paste commands. Thank you very much!
@luisgomez124_G
@luisgomez124_G 4 ай бұрын
This is the best video for understand virutal enviroments from scratch, great video and thank you
@jasonpreneveau8608
@jasonpreneveau8608 3 жыл бұрын
Finally, an explanation on a topic : venvs
@adhirdas1995
@adhirdas1995 2 жыл бұрын
This video helped me a lot. Virtual environments always seemed scary to me but now I understand it.
@juanalvarez-perez6295
@juanalvarez-perez6295 2 жыл бұрын
You have helped me so much! I was looking for a guide like this for months, after I screwed with my dependencies. I finally found this video after I thought all hope was lost. I appreciate your hard work!
@LorenzoGentile-sw9tn
@LorenzoGentile-sw9tn Жыл бұрын
Very thorough explanation! Thank you for explaining how virtual environments work rather than just how to use them!!
@tecladocode
@tecladocode Жыл бұрын
Glad it was helpful! Thanks for the comment!
@A2ZAZZ
@A2ZAZZ 3 жыл бұрын
This is best explanation I've seen in KZbin about this topic. Thanks !
@QQuadmax
@QQuadmax 2 жыл бұрын
I really appreciate the details. I would use this video as an example every time i am lost
@narendrakumarbalyammuralid7546
@narendrakumarbalyammuralid7546 2 жыл бұрын
quick and straight to the concept venv, dependency management using pip
@CodingSquid
@CodingSquid Жыл бұрын
Nicely done. Just finished your WSL2 class on another training web site. Virtual Environments are a mystery no more, Thanks
@tecladocode
@tecladocode Жыл бұрын
I don't have any WSL2 classes 🤔 but thank you nonetheless, glad you liked the video!
@Jamaipanese
@Jamaipanese 2 жыл бұрын
Amazing video. Simple, clear and to the point with examples. Thank you!
@xLatinAssazzin
@xLatinAssazzin 2 жыл бұрын
Simple my ass
@MrPatrickbuit
@MrPatrickbuit Жыл бұрын
I love how you explain not just how to set up a virtual environment, but also why we do it. Great stuff :)
@zer0sk8
@zer0sk8 2 жыл бұрын
Very well explained and with a lot of details. Easy even people which are not familiar with software developing. Thanks a lot !!
@lucyfrye6723
@lucyfrye6723 8 ай бұрын
Thanks, that was very clear, I ended up making such a mess of my python installation that I ended up reinstalling macos. Never that again, it cost me half a day wasting time on setting everything up again.
@dirtrockground4543
@dirtrockground4543 2 жыл бұрын
Great video thanks, most tutorials seem to assume you know why we need to create a virtual environment.
@briancarroll9433
@briancarroll9433 2 жыл бұрын
Great intro to virtual environments. To activate the virtual environment when using PowerShell, I had to run the command: venvName\Scripts\Activate.ps1 instead of venvName\Scripts\activate.bat
@JoelRivera3
@JoelRivera3 2 жыл бұрын
Brian good catch. Also, if it doesnt work you will need to set the execution policy to either Bypass or AllSigned. Bypass all scripts are allowed, Allsigned only trusted so when you run third party scripts you will have to trust them first. I ran in powershell 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' you can always reverse it to how it was whether it was restricted or undefined after completing your virtual environment project.
@jackdexter3286
@jackdexter3286 2 жыл бұрын
Really clear, simple, and explains a lot of things that beginners never hear like path, creating venv with a specific python, how venv work, etc. Thx a lot
@ekeminiudoetuk4056
@ekeminiudoetuk4056 2 жыл бұрын
Please I can't move past 5:30... how do I grab the path to the installation package? Help me
@pablomunsey
@pablomunsey Жыл бұрын
Great presentation. Short but sufficiently detailed. Well done!
@udirt
@udirt 10 ай бұрын
Thank you for the explanation. It is still incomprehensible how the python community (we belong to) has decided to live like this.
@manudewi
@manudewi Жыл бұрын
Thank you so so much, this was the best, concise, follow along video to me. It freed me from my virtual environment blockade. Gracias 🙏
@viktorilienko1509
@viktorilienko1509 Жыл бұрын
Great video, thank you for the explanation. The video after all could be shortened to 2 steps (let it be a cheatsheet for me and others): 1) run C:\python\Python_3.6.4\python.exe -m venv .env 2) run 'activate.bat', for example, C:\Projects\Learning\Python\python_automation_mentoring\sandbox\pytest_example\.env\Scripts\activate.bat
@guohaotan7617
@guohaotan7617 10 ай бұрын
this really brings clarity to my understanding
@Oliver-ho4jz
@Oliver-ho4jz 2 жыл бұрын
Awesome video with key bits of information that I've wanted answers to for a while that are difficult questions to ask the internet!
@melodicprojection9999
@melodicprojection9999 2 жыл бұрын
Very helpful video!!! Just two things are missing: deactivation and deletion. But anyway, your video helped me a lot!!! Thank you.
@dcdales
@dcdales Жыл бұрын
Semver in Python - so much more intuitive than JS. Thank you, Python!
@reinasama904
@reinasama904 2 жыл бұрын
I learned a lot through your video. Tremendous help and such a quality! Thank you so much.
@batsiziki119
@batsiziki119 2 жыл бұрын
This is video is so easy to follow and helped me a great deal. Thank you very much man.
@rickyardo2944
@rickyardo2944 Жыл бұрын
Thanks for a load of great tutorials and would you consider doing a series on Swift on the mac? thanks again
@jikkhi
@jikkhi 2 жыл бұрын
I can't thank you enough for explaining about virtual env in detail. This was so helpful 🙌👏
@dgurl04
@dgurl04 Жыл бұрын
This was so beautifully and simply explained. Thank You for this video. Happy New Year
@slavinamihova571
@slavinamihova571 2 жыл бұрын
Great, comprehensive tutorial! I really appreciated the extra tidbits of info, such as the explanation of version numbering, too. Thank you so much!
@andrewbrown6097
@andrewbrown6097 3 жыл бұрын
Very, very good tutorial, Jose! You answered all my questions with good advice about using major, minor and patch numbers. Very good. I only have two further questions. The first is how do I invoke the virtual environment (venv activation) architecturally (programmatically), fyi I know nothing yet about packaging up my programs for other people to use. The second is if I create 1,000 virtual environments, I am using Linux, will there be 1,000 copies of python (I hope not) or inside each virtual environments, is python, for instance, actually (symbolically) linked to save on storage space. Again, very well communicated. Thanks.
@DDavis0226
@DDavis0226 3 жыл бұрын
Fantastic! OMG, thank you for this! It really helped me understand how it works!
@seanshimon
@seanshimon Жыл бұрын
What is the connection between the Python project to the Virtual Env. folder ?
@diegodifelix
@diegodifelix 6 ай бұрын
What a great video. Thank you very much. I did a resume to me.
@patmaloyan620
@patmaloyan620 Жыл бұрын
great vid, well detailed and learned even more than just venv. Detail helped me get better grasp of how windows os and py work.
@valostudent6074
@valostudent6074 2 жыл бұрын
i finally understand how venv works,thank you , u are awsum
@fb64578
@fb64578 Жыл бұрын
Excellent! Would you have any plans to share and demo use cases for streamlit ?
@lipingwong6675
@lipingwong6675 2 жыл бұрын
awesome video!! now I have a clearer idea of virtual environment on python! do you have videos on making a client/server program to talk to a server and receive information from another server?
@ROC4Life96
@ROC4Life96 2 жыл бұрын
This was perfect, clear and concise. Thank you!
@Wallie.AiFounder
@Wallie.AiFounder 10 ай бұрын
FINALLLLYYYY JESUS... I've been looking for you buddy thanks
@reghaabraham
@reghaabraham 3 жыл бұрын
Awesome video! Now this is the awesomeness; I have been creating virtual environment for my little projects but still learnt another watching this vlog. Thank you Jose!
@finixik
@finixik Жыл бұрын
Excellent video. I am really grateful for this dose of knowledge.
@wilsonusman
@wilsonusman Жыл бұрын
Jose, great video. Your explanations and diagrams really make it clear to understand concepts. Keep it up. You have a new sub.
@tecladocode
@tecladocode Жыл бұрын
Welcome aboard! Thank you for your kind words!
@ntoslinux
@ntoslinux 2 жыл бұрын
Awesome explanation. Appreciate for taking time to create it!
@eraybuyukkanat3240
@eraybuyukkanat3240 2 жыл бұрын
I learned a lot through your video, this was a very helpful and very clear explanation. Thank you sir!
@fabianaltendorfer11
@fabianaltendorfer11 2 жыл бұрын
That was exactly what I was looking for! Thank you!
@tecladocode
@tecladocode 2 жыл бұрын
Glad I could help!
@thecodeartificer
@thecodeartificer Жыл бұрын
I've watch your udemy videos! This feels nostalgic haha.
@muradmarvin2510
@muradmarvin2510 Жыл бұрын
wonderful explanation of Venv and LIBDADies
@irwanahmed001
@irwanahmed001 Жыл бұрын
Wow, what a fantastic video man, perfect explanation for beginners like me, thanks a lot. Btw, what would you say are the best resources for a beginner to gain an average understanding of web and operating system architecture?
@alvarolang
@alvarolang Ай бұрын
Congratulations! Really cool video.👍🏼 The text font was a little small for watching on smartphone thou ...
@tecladocode
@tecladocode Ай бұрын
Thank you! It’s true, but a very small amount of people watch in a smartphone since this whole topic only really works on desktop 😔
@jwd.t
@jwd.t Жыл бұрын
Super helpful for a new python programmer like me. Subbed, without hesitation. :D
@animel8ve
@animel8ve 9 ай бұрын
Thank you so much. This was one of the best videos ever. 😊
@tarekghanoum
@tarekghanoum 3 жыл бұрын
Are you required to deactivate after working in a virtual environment or is it enough just to change directory?
@subhranshudas8862
@subhranshudas8862 Жыл бұрын
Does Python has anything like NPM in JS land? --automatically add packages (+versions) to the requirements.txt file when i install something new? Besides that question, it was an awesome explanation for the topic.
@СергейЗинченко-т2к
@СергейЗинченко-т2к 10 ай бұрын
thank you, bro! its very easy to understand, gl!
@jonwoods6745
@jonwoods6745 2 жыл бұрын
This was a very helpful and very clear explanation. Thank you for creating this!
@qzorn4440
@qzorn4440 Жыл бұрын
A most interesting Virtual Environment Python video. I wonder how many versions of python are needed or will 3.11 run most everything? 😎 Thanks a lot.
@pgallovich
@pgallovich 3 жыл бұрын
It’s great to see your content on the channel Jose! Always really great quality and helpful. Thank you!
@tecladocode
@tecladocode 3 жыл бұрын
Thank you Paul! Glad to be back making content! 💪
@ahmedelsayedabdelnabyrefae1365
@ahmedelsayedabdelnabyrefae1365 3 жыл бұрын
Hi man one of the best explanation I have ever seen thank you it really helped
@kia4now
@kia4now Жыл бұрын
I havent hit the subscribe button that hard in a long time, great video man. If you're taking requests, a tutorial to clean up global/local scopes for people that have installed way too many versions and their computer is totally out of wack. Moving forward Im going to take the extra 5 minutes and do everything local, thanks to you I now know why it's so important Edit: One issue when I run it it keeps using another interpreter and no matter how many times I changed it in vscode the same issue. I used sys.executable to confirm it's the wrong env
@tecladocode
@tecladocode Жыл бұрын
💥 thank you! I will continue making videos, I hope you enjoy them! And thanks for the suggestion, a guide on cleaning things up would be nice actually. I'll get to work! VSCode always chooses a default environment for me too. Then I create a virtual environment using the console and _sometimes_ it will be like "do you want to select this one?". Other times it won't, and you just have to remember to do so manually. CTRL+SHIFT+P -> Select Interpreter is the easiest way to do it (CMD+SHIFT+P on Mac).
@alireza2295
@alireza2295 Жыл бұрын
Thanks for the informative video. Is it possible to run multiple virtual envs on a single pc at the same time without interfering eachother?
@polinat1158
@polinat1158 Жыл бұрын
I wish you know how long I had been searching for this explanation... I used to work with suffering of misunderstanding
@tecladocode
@tecladocode Жыл бұрын
Happy to help! I’m glad you liked the explanation 👌
@nayan7065
@nayan7065 Жыл бұрын
Most needed video. Good explaination
@asadullahaziz
@asadullahaziz 3 жыл бұрын
Thank You for creating this tutorial. You explained clearly.
@Mrnw10
@Mrnw10 2 жыл бұрын
Legendary stuff mate! thank you so much for taking the time to explain!
@MamaMia84oo7
@MamaMia84oo7 Жыл бұрын
Btw, “chdir” and “cd” are the same thing, in case anyone wondered.
@Sn0wwh173
@Sn0wwh173 2 жыл бұрын
This was so incredibly helpful! Thanks so much!
@teklehaimanotaman3150
@teklehaimanotaman3150 Жыл бұрын
Thank you for your easy explaination on virtual enviroment. If python is installed in C drive and my projects are located in D drive, can I create virtual enviroment in D ? or it should be in the drive where python is installed?
@samana991
@samana991 5 ай бұрын
Thanks for the explanations; good stuff!
@ishwarcm.5009
@ishwarcm.5009 13 күн бұрын
Most helpful video on this topic 🙂
@fernandog5855
@fernandog5855 2 жыл бұрын
Perfect explanation! Very clear and very helpful.
@thalesaragao8634
@thalesaragao8634 2 жыл бұрын
Absolutely amazing work, Jose! What a great useful video! Thanks!
@relaxtone217
@relaxtone217 3 жыл бұрын
Thnak you for this video, It is a very usefull video for me as a begginer
@maximemonfette
@maximemonfette 2 жыл бұрын
Great editing, super straigthforward. thanks :)
@AhmedAli-uj2js
@AhmedAli-uj2js Жыл бұрын
Great Explanation, I have ever perceived
@victorial5141
@victorial5141 2 жыл бұрын
Thank you so much this is actually the most legit python venv tutorial I've found so far ... very helpful
@onomatopeia891
@onomatopeia891 2 жыл бұрын
Thanks for the very clear and insightful video!
@djryanashton
@djryanashton Жыл бұрын
Excellent tutorial and understanding. Thanks.
@tecladocode
@tecladocode Жыл бұрын
Glad it was helpful! Thank you!
@felipica
@felipica Жыл бұрын
thank u for the video. ive learnd a lot from this, mainly about path
@tecladocode
@tecladocode Жыл бұрын
Glad it was helpful!
How to Create and Use Virtual Environments in Python With Poetry
14:43
This Game Is Wild...
00:19
MrBeast
Рет қаралды 171 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,6 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
What is the Python Interpreter? (How does Python Work?)
14:08
Afternerd
Рет қаралды 85 М.
CPU vs GPU vs TPU vs DPU vs QPU
8:25
Fireship
Рет қаралды 1,9 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 625 М.
Python Virtual Environments - Full Tutorial for Beginners
9:05
Tech With Tim
Рет қаралды 101 М.
What does '__init__.py' do in Python?
6:50
Indently
Рет қаралды 86 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
The Best Way to Learn Linux
9:45
Mental Outlaw
Рет қаралды 119 М.
Anaconda (Conda) for Python - What & Why?
26:10
Academind
Рет қаралды 241 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 256 М.