5 ms·
Pyenv combined with Poetry is still the cleanest way to run multiples envs. Any other suggestions?
by marban 5y ago
Pyenv combined with Poetry is still the cleanest way to run multiples envs. Any other suggestions?
- wdroz 5y agominiconda is nice for that too, especially if you want non-python things like cuda.
- yawgmoth 5y agoI had a lot of fun with https://pdm.fming.dev/ https://pdm.fming.dev/
- marban 5y agoNice, never heard but almost seems like a 1:1 competitor?
- vajenetehais 5y agoI've always found pyenv a bit complex to deal with. I've also encountered some bugs with a fresh debian install and pyenv. To put this in perspective, i'm not the sharpest knife in the drawer (not a programmer, not an adminsys). I prefered alt install for a specific version (python3.3, python 3.X, etc. with associated pip) and virtualenv. Then doing `python3.X -m venv` i got what i need. VScode or pycharm can bind to it. Recently i've tryed Fedora and they ship python versions compiled so you just need to use the package manager. It's easier and it deals with updates. I stick with that now (i'm migrating from deb to fedora for my servers).
- tempest_ 5y agoI like and use poetry, it generally just works. It is however slow as molasses and its error messages are sometimes worse than a stack trace.
- ellisv 5y agoI use pyenv + direnv. If my project uses 3.10.3 I just add `layout pyenv 3.10.3` to my .envrc file. This creates a venv in the `.direnv` subdirectory. When I `cd` into the dir my environment is automatically configured to use the virtual environment and when I `cd` out the configuration is removed. If you want to use poetry + direnv, that's also an option. https://github.com/direnv/direnv/wiki/Python#pyenv https://github.com/direnv/direnv/wiki/Python#pyenv https://github.com/direnv/direnv/wiki/Python#poetry https://github.com/direnv/direnv/wiki/Python#poetry
- sjellis 5y agoThe maintainers of the Python packaging have just officially adopted Hatch: https://hatch.pypa.io/ https://hatch.pypa.io/ Hatch aims to do what Poetry does, but is strictly compliant with Python standards.
- 0x008 5y ago> The maintainers of the Python packaging Who? > have just officially adopted Hatch: Do you have a link?