4 ms·
Exactly. Always, always create a virtual environment of some sorts for your python projects, unless you don't use external dependecies at all. I ended up using
by atoav 5y ago
Exactly. Always, always create a virtual environment of some sorts for your python projects, unless you don't use external dependecies at all.
I ended up using poetry in the end.
- NoThisIsMe 5y agoYes, that too, but GP isn't talking about virtual environments.
- mescaline 5y agoOr just run it in a container!
- atoav 5y agoPoetry wins over a container because you have better version control (minimum/maximum specs as per your pyproject.toml file) and makes sure your users get the same build (as per poetry.lock). Additionally if what you are building is a library, then a container won't fly as you (to my knowledge) cannot publish these to pypi (to make them installable via pip install foo)