Python Virtual Environment and pip for Beginners

preview_player
Показать описание

Python virtual environment and pip for beginners. In this tutorial, you will learn what pip is for and how to use python virtual environments with pip. We will also build a Weather app in a venv virtual environment.

⭐ Become a full-stack dev with Zero To Mastery Courses:

👇 Follow Me On Social Media:

Python Virtual Environment and pip for Beginners

(00:00) Intro
(00:05) Welcome
(00:14) Getting Started
(00:33) Installing packages with pip
(02:19) pip list
(02:46) Installing a specific package version
(03:58) Upgrading a package with pip
(04:24) pip uninstall
(04:53) Why do we need virtual environments?
(05:54) Creating a virtual environment
(08:10) Comparing global & virtual environments
(09:30) Packages may install other required packages
(11:01) Python Package Index - PyPI
(11:31) Creating a requirements file
(12:34) .gitignore
(13:30) Weather project
(13:53) Get a login
(14:18) API Key and .env file
(16:18) Get the request URL
(18:25) Complete the Weather project

📚 Tutorial References:

Was this Python tutorial about virtual environments and PIP helpful? If so, please share. Let me know your thoughts in the comments.

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

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")

liorp
Автор

perfect tutorial, you really saved me today. The confusion from today's class is gone.

jakkdlaw
Автор

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

garrettswenson
Автор

So glad that I stumbled on your channel. Than you very much good sir!

maxpopov
Автор

i am learning python from udemy when i get stuck I come to Youtube and search for my favorite content creator Dave Gray to find asolution 😍😍

abuzain
Автор

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!

ahmad-murery
Автор

Clear and complete. Nicely done. Thanks.

ela
Автор

Appreciate.
The official Python recommendation is pipenv. I'm also looking forward to the Pipenv lesson.

kcell
Автор

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.

adriantworek
Автор

thanks sir, if you could explain some python modules after ending this course ❤.

michaelscofield
Автор

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?

sholle
Автор

awesome. best programming teacher on YouTube!

jamescaleb
Автор

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!

tw
Автор

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.

xzex
Автор

i hope you do django series dave thank you

khalilbenmeziane
Автор

Do you think of creating a NestJS course? We hope so.

xivckqe
Автор

hello dave sir. after python series, are you going to teach django or flask(or both)? thanks in advance for your reply

johnforeverrules
Автор

In windows I could never activate the venv with Source, I just run the activate.bat .

xzex
Автор

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?

placidaorlunwo
Автор

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?

lorenzasaettone