This section of the tutorial introduces you to virtual environments, the pip package manager, and better alternatives that combine these two, like Pipenv.
A Python venv (short for virtual environment) allows you to keep Python packages in an isolated location from the rest of your system. This is in contrast with the other option, installing them system-wide. Virtual environments have important advantages that we’ll go over first. I’ll show you exactly how to work with virtual environments in the following article.
After that, you need to learn how to install packages inside of a virtual environment, or system-wide. We do this with the pip install command.
Virtual environments and pip come with a default Python installation. However, there are better tools these days. We’ll look at Pipenv, which combines package management and virtual environments into one tool.