A beginner's guide on effectively managing Python virtual environments using different tools in Python ecosystem.
Popular Python virtual environment management options:
- [1] venv
- [2] virtualenv
- [3] virtualenvwrapper
- [4] pipenv
- [5] poetry
- [6] pyenv-virtualenv
- [7] conda
- [8] hatch
- [9] pdm
- [10] pew
- [11] tox
- [12] nox
- [13] rye
It's glad that the Python ecosystem offers numerous options for managing virtual environments. Yet, for beginners, this abundance may lead to the common question: Which one should I choose? In this section, I aim to share my experience and opinions to guide beginners to make right choices.
None could be more easy than venv
, as it is a Python (>=3.3) built-in module, nonthing needs to be installed, just running command python -m venv
to use it. If you simply want to create a virtual environment for your Python project, and don't want to install third party packages for this purpose, then go for it with venv
.
virtualenv
instead is an independent library to create isolated Python environments.
[In progress...]
If you have any question about this opinionated list, do not hesitate to contact me @jgujerry on X (Twitter) or open an issue on GitHub.
This project is released under MIT License