4 ms·
Regarding the big list at the beginning of the article, which may seem daunting, IMO you just need venv, and I'd also add poetry. pyenv and tox are useful if yo
by saila 6y ago
Regarding the big list at the beginning of the article, which may seem daunting, IMO you just need venv, and I'd also add poetry. pyenv and tox are useful if you need to support multiple Python versions.
- pyenv is used to manage which Python versions you have installed
- venv comes with Python and is used to actually create virtualenvs
- `poetry install` will create a virtualenv for you, install your packages into it, and create a lock file (assuming your project is configured to use poetry)
- tox is used to run your test suite against multiple Python versions (but you don't use it to directly manage virtualenvs)
- angrais 6y agoPyenv is not only useful, I would argue it is recommended and a must. For the simple fact: you will need a different python installation than the default on your machine. This also helps keep everything separate. Tox is another great tool, but imho only if your project has a strict requirement for multiple python versions. Otherwise, it's a waste of effort.
- ianamartin 6y agoAgree about pyenv. It's the best solution by far. Don't leave /home without it.