@[email protected] to [email protected]English • 9 months agoPython 3.12.0pinwww.python.orgexternal-linkmessage-square15fedilinkarrow-up1105arrow-down11 cross-posted to: [email protected][email protected][email protected][email protected][email protected][email protected]
arrow-up1104arrow-down1external-linkPython 3.12.0pinwww.python.org@[email protected] to [email protected]English • 9 months agomessage-square15fedilink cross-posted to: [email protected][email protected][email protected][email protected][email protected][email protected]
minus-square@[email protected]linkfedilink5•9 months agoHow do you guys update python versions and all the libraries you have installed? I have multiple like pygame ptpython pandas Pillow icecream … is it not a massive hassle to have to reinstall all of this with every new version and fight the old version on ubuntu?
minus-square@[email protected]linkfedilink20•9 months agoPyenv! Let the OS have its own version and work on whatever version you want, whenever.
minus-squareScribbdlinkfedilink7•edit-29 months agoAlso pipx for cli tools. It creates isolated environments for every tool you install. And upgrading is one command away pipx reinstall-all --python (your pyenv).
minus-square@[email protected]linkfedilink9•9 months agoYou are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.
minus-square@[email protected]linkfedilink4•9 months agoConda is, to the alternative already mentioned, a great way to keep different versions of python and it’s packages for each project!
minus-square@[email protected]linkfedilink3•9 months agoOn Linux, I’d just build my own Python binaries and make them available. But you can also use pyenv for the same thing if you’re ok with it. Then, using poetry, I have different projects with isolated environments.
How do you guys update python versions and all the libraries you have installed? I have multiple like
Pyenv! Let the OS have its own version and work on whatever version you want, whenever.
Also pipx for cli tools. It creates isolated environments for every tool you install. And upgrading is one command away
pipx reinstall-all --python (your pyenv)
.You are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.
Conda is, to the alternative already mentioned, a great way to keep different versions of python and it’s packages for each project!
On Linux, I’d just build my own Python binaries and make them available. But you can also use pyenv for the same thing if you’re ok with it.
Then, using poetry, I have different projects with isolated environments.
The deadsnakes ppa is quite awesome