How To Setup A Virtual Environment For Python In Visual Studio Code In 2023

  Рет қаралды 359,805

Indently

Indently

Күн бұрын

Here's how you can setup a virtual environment in Visual Studio Code for Python.
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels

Пікірлер: 202
@rolandonunez1893
@rolandonunez1893 7 ай бұрын
For those that didn't get the venv after restarting the terminal and had an error regarding to Execution Policies, just run in the terminal the following script: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser and then: .\.venv\Scripts\activate (for Windows)
@asioud
@asioud 7 ай бұрын
Goat
@lyndaraid3401
@lyndaraid3401 6 ай бұрын
Very useful comment 👍🏻
@artyCrafty4564
@artyCrafty4564 5 ай бұрын
thanxxxxxxxxx mannnnnnnnnnnnn
@Harshitha--wq1jq
@Harshitha--wq1jq 5 ай бұрын
thanks
@sushmitarawat6438
@sushmitarawat6438 5 ай бұрын
Thanks a ton😊
@kiyingipisgah4365
@kiyingipisgah4365 Жыл бұрын
It has taken me hours to import modules in python but after following this, I can firmly say that I have landed. Btw am a self taught programmer/coder and this was really helpful.😊
@NewParadigmAI-zm9lj
@NewParadigmAI-zm9lj 11 ай бұрын
This is the best damned instructional ever. Honestly, so many 20 minute videos, and this dude knocks it out of the park.
@zeebeat123
@zeebeat123 4 ай бұрын
Couldn't agree more. I have watched SO many videos and they are much longer, and many leave out small but essential details
@joaquinurruti2628
@joaquinurruti2628 11 күн бұрын
Absolutely! He's so clear on every subject!
@ליאורשביט-ד5כ
@ליאורשביט-ד5כ 3 ай бұрын
As someone who is just starting out and really needs the things that are understood by everyone, I appreciate this video. Thanks.
@boitedamour
@boitedamour 7 ай бұрын
after 4 hours of search, your tutorial saved my life . thanks
@azekhuoriadignity2360
@azekhuoriadignity2360 3 ай бұрын
for those that did not get the (env name) in terminal path, which is supposed to be displayed in the panel after activation, its normal on Vs code right now. You can hover over the powershell or cmd button on the top of the panel to see the extensions that have contributed to the terminal environment. There you will see your virtual env running.
@Moxaji
@Moxaji 3 ай бұрын
thank you, this was my issue, I was confused
@azekhuoriadignity2360
@azekhuoriadignity2360 3 ай бұрын
@@Moxaji you’re welcome
@Ashley_Mariee
@Ashley_Mariee 12 күн бұрын
thank you so much for leaving this comment 🙌
@azekhuoriadignity2360
@azekhuoriadignity2360 8 күн бұрын
@@Ashley_Mariee you're welcome
@JamesRBentley
@JamesRBentley Жыл бұрын
bro this is the best tutorial on how to do this, clear, simple, perfectly illustrated for beginners
@saintsscholars8231
@saintsscholars8231 9 ай бұрын
I was literally tearing my hair out trying to modify PATH variables and going around in circles. Very clear explanations. Thank you!
@lofgren007
@lofgren007 4 ай бұрын
Best and simplest explanation I have come across for venv - thank you kindly.
@abubakr9796
@abubakr9796 Жыл бұрын
Love your videos bro! Easy and simple to understand tutorials and explanations.
@abdullahattia2491
@abdullahattia2491 Жыл бұрын
simple enough and straight to the point thanks!
@amigobrewbrew9297
@amigobrewbrew9297 Жыл бұрын
As a beginner I was lost but now it all makes sense. Thanks!
@user-jk1gb7wm6z
@user-jk1gb7wm6z Жыл бұрын
for windows .... python -m venv myenv Then activate it by following command... myenv\Scripts\activate here .... myenv is name of my environment .... u can give any name ..... Just 2 lines of Commands..
@sgomez8194
@sgomez8194 Ай бұрын
thank you! .venv\Scripts\activate did it for me! now i can see the (.venv) in the terminal
@kenbajema
@kenbajema 9 ай бұрын
Now the dozens of videos I've watched regarding installing Autogen and memgpt etc make sense!! thank you. I've been using conda environments and have had a difficult time finding the and editing the correct .py files! for packages and running them.
@JackPlaysMinecraft575
@JackPlaysMinecraft575 10 ай бұрын
Thank you for this Helpful Video i was Struggling with using VScode Now i Know how to get python onto it
@itskingshon
@itskingshon 5 ай бұрын
You're a literal lifesaver; thank you!
@ighodaro4307
@ighodaro4307 7 күн бұрын
you're the best thank you so much I never liked vs code but am good now after watching you
@andrewclayburn5920
@andrewclayburn5920 Жыл бұрын
wow I wasted so many hours trying to figure out what the hell was going on before finally finding this video and solving it in seconds, thanks man I appreciate it!
@ispeakpython
@ispeakpython 7 ай бұрын
Thank you sir, I've found answer of my question here after 3 weeks.
@lavendercode
@lavendercode Жыл бұрын
Thank you so much Indently! This is the easiest way to make a virtual environment. Please continue to make videos; they are valuable!
@bensonkamau1844
@bensonkamau1844 Жыл бұрын
actually when creating a new python file, if you create a requirements.txt under it and add modules to be used, vscode displays a button on the bottom left side asking you whether you want to create a new environment
@cosmic_9
@cosmic_9 10 ай бұрын
Thank you for explaining it as well! I'm trying to comperhend every basic principle vs code and python has to offer and hit a wall here.
@LaminarRainbow
@LaminarRainbow 8 ай бұрын
Thank you for the quick and concise video!
@notgamerboy8048
@notgamerboy8048 Жыл бұрын
great tuotrial, it took me a few hours to figure it out by my self last time, but this time it took like 2 mins bc of your vid
@TJTHEFOOTBALLPROPHET
@TJTHEFOOTBALLPROPHET Жыл бұрын
Bruh, that was the best explanation on the internet! thank you!
@bozok1903
@bozok1903 Жыл бұрын
I watch your videos even if I know the subject you teach. You are very good at transferring your knowledge. Thanks a lot.
@Ponduck
@Ponduck Жыл бұрын
das just odd
@PagareProduction123
@PagareProduction123 4 ай бұрын
Thanks buddy for give me this instruction Thank you so much
@mohammadhseinanvari5865
@mohammadhseinanvari5865 2 ай бұрын
Thank you so much this video was so practical for me❤❤❤❤
@solomonwest9104
@solomonwest9104 8 ай бұрын
You are very helpful ... you just earned a subscriber , Thanks
@bodonyigy
@bodonyigy 10 ай бұрын
Helped a lot. Simple, clear, understandable!
@nimraiman2018
@nimraiman2018 6 ай бұрын
this is exactly what i was looking for❤
@noekiriza5041
@noekiriza5041 Жыл бұрын
Thanks, I finally found the best Tutorial 💪
@rick.d
@rick.d Жыл бұрын
couldn't have been more perfect. thanks!
@alexeykruglov8185
@alexeykruglov8185 5 ай бұрын
Thank you vety much> I am using this in my work.
@go_away_plz
@go_away_plz Жыл бұрын
This tutorial really helped me. Thank you very much!
@Sanjana-nl1si
@Sanjana-nl1si 8 ай бұрын
Thank you. That was very helpful
@whatdaro
@whatdaro 11 ай бұрын
great video, straight to the point. subbed
@trzztrzz2477
@trzztrzz2477 Жыл бұрын
Life saver. Thank you man!
@Nand_Snowwhite
@Nand_Snowwhite Жыл бұрын
Thanks for the beautiful explanaiton. Well done
@nelsonberm3910
@nelsonberm3910 Жыл бұрын
This is freaking craZY Tthank yoiu
@MOHAMEDGHARBI100
@MOHAMEDGHARBI100 10 ай бұрын
your language is so beautiful, thank you for your time. may I ask you where you from?
@Malek_Kidmal
@Malek_Kidmal Жыл бұрын
Thank you for this video, really helpful !
@MushroomPower84
@MushroomPower84 Жыл бұрын
Thank you for your work! I've already learned a lot by this channel.
@y.s4963
@y.s4963 Жыл бұрын
First of all i love your accent and tnx for your tutorial
@danieledispirito
@danieledispirito Жыл бұрын
i’ve just discovered you’re italian, good video man!
@katerinaprotivenskiy3680
@katerinaprotivenskiy3680 7 ай бұрын
Very helpful! thanks!
@brii3506
@brii3506 8 күн бұрын
Thank you soso much really!!
@Gamesoldier68
@Gamesoldier68 4 ай бұрын
Thank you very much for the very informative video. So i assume if you wanted to set up several virtual environments for different projects, you would just name them differently in the .venv command. Thanks again
@sharifsharifani
@sharifsharifani Жыл бұрын
Although I completely followed this video, the error resists:ImportError: No module named statistics what should I do?
@srivatsavm3892
@srivatsavm3892 Жыл бұрын
i know this is a late reply cuz i just saw it but, after creating virtual environment you have to install your packages again using pip install
@Virtual4087
@Virtual4087 8 ай бұрын
​@@srivatsavm3892 Do we need to install all the packages that are already installed in our system again when we activate a virtual environment?
@riluwan369
@riluwan369 7 ай бұрын
bruhh ig its inbuilt
@ХумоюнХужаев
@ХумоюнХужаев Жыл бұрын
thank you very much bro, it really helped me)
@cuoi123
@cuoi123 Жыл бұрын
Thank you, It to be great if you add resolve when user missing that pop-up^^
@frankking5326
@frankking5326 10 ай бұрын
Amazing video!! Thanks
@feelthevieww
@feelthevieww Жыл бұрын
it was so help full nice work bro
@pleabargain
@pleabargain 10 ай бұрын
Super helpful. Thank you!
@Indently
@Indently 10 ай бұрын
Glad it was helpful!
@ApolloAnalytics
@ApolloAnalytics Жыл бұрын
You saved my day... Thanks 😊
@trp
@trp Жыл бұрын
Never thought it was this easy
@reighndrop1
@reighndrop1 2 ай бұрын
I just keep getting an error when trying to run the virtual environment command- Python was not found; run without arguments to install from the Microsoft Store,
@llucgarciacrumols4330
@llucgarciacrumols4330 29 күн бұрын
me too, have you fixed it?
@KALYDO
@KALYDO 23 күн бұрын
very helpful
@ugurcaneser
@ugurcaneser 8 ай бұрын
It helped a lot. Thanks!
@Indently
@Indently 8 ай бұрын
Glad it helped!
@MukhammadkodirAbdusalomov
@MukhammadkodirAbdusalomov 6 ай бұрын
Thanks, this video is useful :)
@datag1199
@datag1199 Жыл бұрын
Fantastic video. Thank you very much.
@aditg367
@aditg367 8 ай бұрын
Thank you for the video
@INGABIREJosiane-y8i
@INGABIREJosiane-y8i 6 ай бұрын
short and clear😍
@juliusngwu
@juliusngwu 10 ай бұрын
Crystal clear
@joaovitor42411
@joaovitor42411 11 ай бұрын
Thank you very much, man
@cpesk06
@cpesk06 Ай бұрын
Thanks!! Can you replace .venv with another environment name, or is this necessary for it to run properly?
@Code4U_
@Code4U_ 4 ай бұрын
Forget a .\ and searching for how to fix ps1 error ...... Thanks ❤
@DesperadoAH
@DesperadoAH 6 ай бұрын
THANK YOU ❣
@saremish
@saremish 9 ай бұрын
Very useful!
@haiclop_music
@haiclop_music 9 ай бұрын
Thank you so much bro
@charlessnachez4248
@charlessnachez4248 4 ай бұрын
Why the « pip install discord » int he folder didnt work but it worked in the venv environment ? Is it because of some conflict with other global python packages?
@chycheaninh5346
@chycheaninh5346 5 ай бұрын
Thank you brother
@anything9276
@anything9276 Жыл бұрын
That was very helpful thanks
@prabhdeepsingh8726
@prabhdeepsingh8726 7 ай бұрын
At 0:45 you should say that you installed Python extension for VSCode, not the interpreter. Without that extension, VSCode will not give you an option to choose between virtual environments.
@julianpicon243
@julianpicon243 6 ай бұрын
Great
@En1gma2u
@En1gma2u 11 ай бұрын
Thank You!!, I knew I recognized the voice -- Total Python: You Can Master Python Programming in 16 Days
@Indently
@Indently 11 ай бұрын
What’s that?
@En1gma2u
@En1gma2u 11 ай бұрын
A class on Udemy, guy name is Federico and sounds just like you.
@enableDeepak
@enableDeepak Жыл бұрын
quite helpful! what keyboard shortcut runs the program?
@guyonlead
@guyonlead Жыл бұрын
Quick and easy! Thanks!
@tonyhacker932
@tonyhacker932 2 ай бұрын
thanks brother
@catnpizza
@catnpizza Жыл бұрын
Thank you very much I'm very grateful!!!
@boyinpyjamas
@boyinpyjamas 10 ай бұрын
Great video but could have mentioned how to deselect select delete venvs.
@GouravRout10
@GouravRout10 11 күн бұрын
lovely
@bneyez
@bneyez Жыл бұрын
Ur the best!
@alemaonalingua
@alemaonalingua 9 ай бұрын
NIce. Thanks
@4tmadeit
@4tmadeit Жыл бұрын
thank you man !
@thetafritz9868
@thetafritz9868 7 ай бұрын
what do I do if I failed a couple times, tried again by deleting the .venv files and now no longer get the notification or the option to use the venv folder??
@pokpok9445
@pokpok9445 5 ай бұрын
I'm a bit late but you can click on the interpreter data on the bottom-right of the window that should be called like the version of python that is installed on your computer. Then you can click at the top on "browse..." then you go in the .venv folder then scripts and python.exe
@schmeiser_
@schmeiser_ 6 ай бұрын
great video as always, btw I wanna ask why in my python, I cant import tkinter? it says " ModuleNotFoundError: No module named '_tkinter' "
@CodeOnBlocks
@CodeOnBlocks Жыл бұрын
Thank you!
@sbj6173
@sbj6173 Жыл бұрын
Thanks .that was great 😊
@AB-ko2mm
@AB-ko2mm 8 ай бұрын
Thank you
@tech-n-data
@tech-n-data Жыл бұрын
If I had hair, I would have pulled it out trying to figure out why I code wasn't usin the venv. Thank you for this video.
@anomienormie8126
@anomienormie8126 11 ай бұрын
Idk what I've been struggling ten hours for when I could've just watched this and finished in 4minutes ㅠㅠㅠㅠ
@techsporadic
@techsporadic 8 ай бұрын
Thanks
@joncolt3915
@joncolt3915 9 ай бұрын
bro thank you so much!
@Indently
@Indently 9 ай бұрын
No problem!
@pedropacheco8532
@pedropacheco8532 9 ай бұрын
soooo hooot, thanks
@minhazuddin8939
@minhazuddin8939 Жыл бұрын
Thanks man😭❤
@Youtube_Xtreme
@Youtube_Xtreme 7 ай бұрын
"tensorflow" is not importing, can Any one please help me
@anab6636
@anab6636 Жыл бұрын
if I made a file organizer code in python, but I'm scared to try it out on my actual computer, can I run it here??
@media7588
@media7588 Жыл бұрын
Thanks you
@Dasol0246
@Dasol0246 9 ай бұрын
What happens when I run the .py program on another machine, do I need the pip package I installed in the virtual environment or once written I won’t need the pip package?
Using The NEW GPT-4 Model To Create Cool Python Apps
12:54
Indently
Рет қаралды 104 М.
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 353 М.
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 27 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 8 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 6 МЛН
5 Good Python Habits
17:35
Indently
Рет қаралды 551 М.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 718 М.
Powerful VSCode Tips And Tricks For Python Development And Design
15:50
How To Write Better Functions In Python
14:17
Indently
Рет қаралды 30 М.
Python Virtual Environment and pip for Beginners
30:39
Dave Gray
Рет қаралды 30 М.