Manage Python Project Environment with pyenv and PoetryFeb 17th 2022Words: 332
Managing Python projects is sheer painful because Python does not have a universal solution for packaging, version control and dependency management.
The following table shows the common used tools and their features.
Tool Name
Python Version
Virtual Environment Management
Package Management
Package Install
virtualenv
✓
pip / pipx
✓
setuptools
✓
pyenv
✓
✓
pipenv
✓
✓
✓
poetry
✓
✓
✓
IMO using pyenv for Python version switch and poetry for dependency and virtual environment management is the best solution.
Pyenv
pyenv lets you easily switch between multiple versions of Python. It’s simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.