Managing Python Packages and Virtual Environments
Learn how to manage the requirements of your Python projects using virtual environments and pip, the Python package installer. You will also take a look at several related tools: virtualenvwrapper, pipenv, and poetry.
What you'll learn
Most real-world Python projects make use of code written by others, and usually this code is included by installing Python packages. In this course, Managing Python Packages and Virtual Environments, you will learn everything you need to install and manage the packages your project requires using pip, the Python package installer. When you start working on more than a single project, you will find that there's a need to install packages for one project separately from another project. You will come to understand that there's a tool for this situation as well: virtualenv, and no professional Python developer can go without it. First, you will explore everything you need to know in order to use virtual environments on a daily basis. After covering these two core tools, you will then discover other tools that you should at least be aware of such as virtualenvwrapper, which makes managing virtual environments a lot less painful. Finally, you will discover two newer tools: pipenv and poetry, and the direction the Python community is headed. By the end of this course, you will learn how to manage the requirements of your Python projects using virtual environments and pip,
Table of contents
- Introduction 5m
- Getting Started 5m
- Demo: Installing pip on Windows 3m
- Installing pip on Mac OS or Linux 2m
- Demo: Linux Installation 2m
- Demo: Package Management with pip 4m
- Where Are Packages Installed? 3m
- A Better Way to Call pip 3m
- User and system installs 1m
- Demo: Getting Package Information with pip 2m
- Review 2m
- About Virtual Environments 2m
- Creating a Virtual Environment 3m
- Working Inside a Virtual Environment 3m
- Review: Virtual Environments 2m
- Managing Project Requirements 2m
- Projects, Requirements, and Versions 4m
- Virtual Environments and Pycharm 3m
- Virtual Environments and VSCode 1m
- A Real-world Example 3m
- Another Example: Testing with Tox 3m