Python Virtual Environment and pip for Beginners

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

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 61
@garrettswenson794
@garrettswenson794 8 ай бұрын
All I needed was to figure out how to install packages on vsc since I only ever used pycharm for months and this was the first video that actually showed me that you have to tap in to "py -m" first, no other videos showed that, so thank you
@pravin9803
@pravin9803 4 ай бұрын
Thanks a lot for such an informative and useful video. Learnt a lot of new things from this one video, than from multiple other videos. Also you are a great teacher. You have explained the points in a very simple and linear way. Appreciate it.
@mback12000
@mback12000 Ай бұрын
Very helpful video - thanks!
@jakkdlaw
@jakkdlaw 6 ай бұрын
perfect tutorial, you really saved me today. The confusion from today's class is gone.
@liorp4640
@liorp4640 5 ай бұрын
This is great ! Thanks ! For the weather example - I also added a "raise" exception" (following your exception tutorial) in case a city is not found ( weather_data["cod"] == "404")
@jamescaleb9676
@jamescaleb9676 10 ай бұрын
awesome. best programming teacher on KZbin!
@nirmesh44
@nirmesh44 Жыл бұрын
Great way to explain as always.
@lenonfernandes8584
@lenonfernandes8584 4 ай бұрын
You explain really well! Super easy to understand. I am literally learning python now and your videos are really easy to follow along. Do you teach Data Analysis as well?
@ela2112
@ela2112 Жыл бұрын
Clear and complete. Nicely done. Thanks.
@maxpopov6882
@maxpopov6882 Жыл бұрын
So glad that I stumbled on your channel. Than you very much good sir!
@ahmad-murery
@ahmad-murery Жыл бұрын
You may want to add pip directory to the *Path* system environment variable, this way you can call it directly without adding *py -m* in front of it. I prefer using the *source* command unless I'm in a bad mood I'll use the dot (.) as a shortcut Thanks Dave!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Good additions, Ahmad! I hope you are well my friend!
@ahmad-murery
@ahmad-murery Жыл бұрын
@@DaveGrayTeachesCode little busy but I'm ok, and I hope you're well too. Thanks for asking my friend!
@adriantworek1057
@adriantworek1057 Жыл бұрын
Amazing work Dave! Thank you for this series. I hope you will record some web development stuff with Python (Django or FastAPI) in the near future.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
That's the plan! More Python coming after the beginners series.
@kcell2042
@kcell2042 Жыл бұрын
Appreciate. The official Python recommendation is pipenv. I'm also looking forward to the Pipenv lesson.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thanks - it seems venv used to be and pipenv just got the recommendation in 2022. I won't double up on these in this series, but maybe another look in the future. The overall concept and goal works with either.
@kahvelikod
@kahvelikod 6 ай бұрын
Thank you 👌
@utinthein7274
@utinthein7274 Жыл бұрын
Thanks you, Sir
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Welcome!
@utinthein7274
@utinthein7274 Жыл бұрын
@@DaveGrayTeachesCode ❤❤ ❤ sir, you reply late. Are you very busy with heavy work. SIR
@joohuynbae5084
@joohuynbae5084 3 ай бұрын
oh my gosh i'm dying to find the correct command, i've tried like 4 and none of them worked. i watch your video and get it right on my first try. thank you so much.
@sholle7
@sholle7 8 ай бұрын
Hi Dave! This was very helpful. I am a Python beginner and I find that you explain things that a lot of instructors forget (the curse of knowledge). I do have a question though. As you were typing in the function it showed it created a test. Can you tell me what extension you are using? And do you have any suggestions on extensions?
@abuzain859
@abuzain859 Жыл бұрын
i am learning python from udemy when i get stuck I come to KZbin and search for my favorite content creator Dave Gray to find asolution 😍😍
@michaelscofield5343
@michaelscofield5343 Жыл бұрын
thanks sir, if you could explain some python modules after ending this course ❤.
@ram_qr
@ram_qr Жыл бұрын
brilliant as always
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@laurentgaume125
@laurentgaume125 9 ай бұрын
Really Great
@KutaibaAlnizaemy
@KutaibaAlnizaemy Жыл бұрын
Do you think of creating a NestJS course? We hope so.
@johnforeverrules
@johnforeverrules Жыл бұрын
hello dave sir. after python series, are you going to teach django or flask(or both)? thanks in advance for your reply
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I do plan to. Thanks!
@RichardThomas341
@RichardThomas341 4 ай бұрын
Great tutorial! If I may add, at least in in Linux, "pip install" doesn't work, unless you are in a virtual environment (I forget the message). Globally, "pipx" must be installed and used.
@tw9535
@tw9535 Жыл бұрын
Damn that's so good! Thank you so much for your time and teaching style! A+ On the virtual environments, if the .py file is stored/run from a different environment (or anyplace else), is there a way at the top of the script to force it to use the python.exe and dependencies in THIS one-- the one (virtual environment) that we just created? That is something about virtual environments that I am not clear on yet. Thank you!
@xzex2609
@xzex2609 Жыл бұрын
thank you for your Great work , I think one thing was not clarified at the end and we creates some .gitignore and .env files to protect our API KEY but in the end I didn't understand the next step is just commit the project to git hub ? or there is more to it ? I appreciate if some one help me understand it.
@xzex2609
@xzex2609 Жыл бұрын
In windows I could never activate the venv with Source , I just run the activate.bat .
@quaternion-pi
@quaternion-pi Жыл бұрын
In windows terminal "source .venv\Scripts\activate", "source" was not recognized as a command. ".\.venv\Scripts\activate " starts virtual env. Great tutorial.
@tamangteppiche8344
@tamangteppiche8344 10 ай бұрын
How do i run this with source. It doesn’t work.
@khalilbenmeziane8836
@khalilbenmeziane8836 Жыл бұрын
i hope you do django series dave thank you
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You're welcome!
@lorenzasaettone8466
@lorenzasaettone8466 7 ай бұрын
can you prepare a quick tutorial about a web app with flask and API by llm openai. The goal is to answer right to a quiz, and got checked answers, which are not simple yes or nos or fixed words?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 7 ай бұрын
Nice suggestion! I have a Python Flask REST API tutorial coming up next week. The LLM addition might make a nice follow up.
@lorenzasaettone8466
@lorenzasaettone8466 7 ай бұрын
@@DaveGrayTeachesCode thanx!!! :)
@placidaorlunwo5012
@placidaorlunwo5012 7 ай бұрын
I am having challenges installing pakages to the .venv. After I activate and install the installed package doesn't appear in the library. Please how can I resolve this?
@ledders27
@ledders27 Жыл бұрын
What am I doing wrong? Any help greatly appreciated. from dotenv import load_dotenv Import "dotenv" could not be resolved Pylance I've followed the steps of setting up the virtual environment, I can see in the requirements.txt python-dotenv=1.0.0. I'm using python 3.11.1. This also happens on lesson 23 with dotenv and flask.
@juicymoose9693
@juicymoose9693 10 ай бұрын
i have the same issue, did you ever figure it out?
@ledders27
@ledders27 10 ай бұрын
nope still clueless@@juicymoose9693
@ledders27
@ledders27 10 ай бұрын
Nope, I'm still clueless
@juicymoose9693
@juicymoose9693 10 ай бұрын
@@ledders27 maybe someday we'll know 😔
@raynlaze1339
@raynlaze1339 5 ай бұрын
I have a solution for you guys: 1. Hit ctrl + p in vscode. 2. Type: >Python: select interpreter and select it 3. Click "Enter interpreter path..." 4. Enter the path or click "Find" and browse to the path to ".venv/Scripts/python.exe" (select python.exe) 5. check that this python.exe is now your selected interpreter, it should now work.
@rebekkaruck961
@rebekkaruck961 Ай бұрын
As someone with no experience in programming I found these videos really helpful and fairly easy to follow. With this one I have a problem and I was hoping someone could help me. I have successfully created the .venv file but after multiple attempts i still can't get it to activate. It keeps giving an error saying that "source" was not recognized as something that can be executed (or something like that). I tried google but nothing i found worked. I'm on windows using the current version of VS Code and the python extension. I'd really appreciate it, if someone could help me.
@WildHeart7777
@WildHeart7777 3 ай бұрын
I can't open up a virtual environment -- i get this huge error. I have the venv folder in the file explorer, and i can double click on activate to open it on my own, but I can't access it from the terminal. trying to figure out what I'm doing wrong :(
@mr.k8660
@mr.k8660 5 ай бұрын
5:54
@clementbabili6058
@clementbabili6058 Жыл бұрын
Anyone have an issue whereby when you run the py -m venv .venv its gives an error, if so please advise on what to do next.
@hussainalaa2361
@hussainalaa2361 9 ай бұрын
same problem when i give the source command it errors
@alkfjd6313
@alkfjd6313 7 ай бұрын
@@hussainalaa2361 If you're using powershell in windows. Try .\.venv\Scritps\activate
@roeesun6758
@roeesun6758 8 ай бұрын
help when i try to activate venv using source it just says source is not recgonized anyone knows how to fix?
@alkfjd6313
@alkfjd6313 7 ай бұрын
I got the exactly same error. I saw someone on StackOverFlow saying that source only makes sense in Linux, so you can only use source in bash terminal. But bash terminal throws a "No such file or directory" error.
@radman999
@radman999 10 ай бұрын
What is this Windoze bullshit
Python File Handling for Beginners
22:40
Dave Gray
Рет қаралды 25 М.
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 377 М.
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
What is a Virtual Environment in Python?
8:53
Sam Westby Tech
Рет қаралды 8 М.
Python Modules for Beginners
18:03
Dave Gray
Рет қаралды 13 М.
Python OOP (Object-Oriented Programming) Project for Beginners
30:19
My Python Development Environment Setup - Full Tutorial
20:39
Tech With Tim
Рет қаралды 251 М.
How to Create a Web Application in Python using Flask
52:52
Dave Gray
Рет қаралды 96 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 690 М.
Python Virtual Environments - Full Tutorial for Beginners
9:05
Tech With Tim
Рет қаралды 125 М.
Python HOW TO structure a Beginner OR Advanced Projects ?
37:50
JimShapedCoding
Рет қаралды 140 М.