2.8 Virtual environment management
There are several add-on tools for managing virtual environments more effectively. For example virtualenv, can be used instead of the built-in venv package.
In some cases, even more support and automation is required. If you’re working in a data science environment, you’ll probably want to use conda so you can install the complex statistical and scientific packages. The conda tool works with the Anaconda libraries. For more information, see https://docs.conda.io/en/latest/.
Tools such as uv and poetry can help with installing packages, creating packages, and managing virtual environments. For more information, see https://docs.astral.sh/uv/ and https://python-poetry.org, respectively.
When using a tool like uv, use the uv init command to initialize the project directory. The --app option sets up the common structure for building an application. The --lib option will prepare the kind of directory structure...