106
Python 3.12.0
(www.python.org)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
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