Summary
This chapter was all about setting up your virtual environment for a Python project. Each project typically has its own virtual environment. We use virtual environments to insulate our projects from the requirements of other projects and to keep our global Python installation from becoming polluted with lots of global packages that were used for only one project.
A virtual environment is a copy of a Python interpreter along with all supporting tools such as a package manager and third-party libraries needed for your project. PyCharm has features built in for creating and managing virtual environments.
We first see these tools during the creation of a new project. PyCharm prompts us to create a new virtual environment every time. We can also select an existing environment if that is appropriate. PyCharm gives us the ability to change the virtual environment for the project at any time.
Our virtual environments also house all the third-party libraries needed for our...