@pnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish • 2 years agoPython 3.12.0www.python.orgexternal-linkmessage-square15fedilinkarrow-up1107 cross-posted to: programming@programming.dev
arrow-up1107external-linkPython 3.12.0www.python.org@pnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish • 2 years agomessage-square15fedilink cross-posted to: programming@programming.dev
minus-square@ComplexLotus@lemmy.worldlinkfedilink5•2 years 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@monkey@lemmy.worldlinkfedilink21•2 years agoPyenv! Let the OS have its own version and work on whatever version you want, whenever.
minus-squareScribbdlinkfedilink8•edit-22 years 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@ENipo@lemmy.worldlinkfedilink9•2 years agoYou are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.
minus-square@coffeewithalex@lemmy.worldlinkfedilink5•2 years 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.
minus-square@Doccool@lemmy.worldlinkfedilink4•2 years agoConda is, to the alternative already mentioned, a great way to keep different versions of python and it’s packages for each project!
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.
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.
Conda is, to the alternative already mentioned, a great way to keep different versions of python and it’s packages for each project!
The deadsnakes ppa is quite awesome