00:00 In this lesson, you’ll perform some typical actions that you’ll do when working on a Python project. You’ll activate your virtual environment, install an external package, and list installed packages. Along the way, you’ll learn a bit more about project dependencies.
The important thing here is that these are the packages available for my system’s Python. We’ll come back to this in a bit. Now, let’s activate a virtual environment with
activate, and now there is
venv in parentheses at the beginning.
As an example, you’ll install the
requests package. The
requests package is used for making HTTP requests from a Python program. It’s extremely useful in a variety of domains, and many projects use it, but we won’t use it in this course.
pip show command displays information about an installed package, including the author’s name and an email and an homepage. It also lists that
04:10 These other packages are called dependencies or requirements. If you wouldn’t use a virtual environment for your projects, then your system’s Python packages would clutter quite fast with all these dependencies.
04:50 And as you can see, your system’s Python package list stayed clean and tidy. All right, now that you know how to install packages, I’ll see you in the next lesson, where you’ll learn how to uninstall packages.
Become a Member to join the conversation.