16.6 Using the poetry tool
The combination of the venv, pip, and pip-tools packages allows us to create virtual environments and populate them with packages from the PYPI package index.
The poetry tool is a virtual environment manager and package installer combined into a single tool. It fulfills the same use cases as PIP, combined with venv and pip-tools. It also fulfills the same use cases as conda. The CLI is the same on all platforms, permitting simpler, more consistent documentation for developers using Poetry to manage environments.
There are some minor differences in the way Poetry enables a virtual environment. Rather than tweaking the current shell’s environment variables, it launches a sub-shell. The sub-shell has the required virtual environment settings.
16.6.1 Getting ready
Note that the Poetry tool must be installed in its own virtual environment, separate from any project managed by Poetry. This is best done...