pnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish · 1 year agoPython 3.12.0www.python.orgexternal-linkmessage-square13fedilinkarrow-up184arrow-down11 cross-posted to: python@lemmy.mltechnology@hexbear.netprogramming@programming.devhackernews@lemmy.smeargle.fanshackernews@derp.foo
arrow-up183arrow-down1external-linkPython 3.12.0www.python.orgpnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish · 1 year agomessage-square13fedilink cross-posted to: python@lemmy.mltechnology@hexbear.netprogramming@programming.devhackernews@lemmy.smeargle.fanshackernews@derp.foo
minus-squareComplexLotus@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1 year 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-squaremonkey@lemmy.worldlinkfedilinkarrow-up14·1 year agoPyenv! Let the OS have its own version and work on whatever version you want, whenever.
minus-squareScribbd@feddit.nllinkfedilinkarrow-up8·edit-21 year 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-squarecoffeewithalex@lemmy.worldlinkfedilinkarrow-up2·1 year 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-squareENipo@lemmy.worldlinkfedilinkarrow-up2·1 year agoYou are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.
minus-squaresebsch@discuss.tchncs.delinkfedilinkarrow-up1·1 year agoThe deadsnakes ppa is quite awesome
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)
.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.
You are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.
The deadsnakes ppa is quite awesome