this post was submitted on 02 Oct 2023
100 points (99.0% liked)

Python

7293 readers
24 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ComplexLotus@lemmy.world 4 points 2 years ago (5 children)

How 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?
[–] ENipo@lemmy.world 9 points 2 years ago

You are 100% right, that's why we use virtual environments. Specifically we use poetry, which is fine.

[–] Doccool@lemmy.world 4 points 2 years ago

Conda is, to the alternative already mentioned, a great way to keep different versions of python and it's packages for each project!

[–] coffeewithalex@lemmy.world 3 points 2 years ago

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.

[–] monkey@lemmy.world 2 points 2 years ago (1 children)

Pyenv! Let the OS have its own version and work on whatever version you want, whenever.

[–] Scribbd@feddit.nl 3 points 2 years ago* (last edited 2 years ago)

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).

[–] sebsch@discuss.tchncs.de 1 points 2 years ago

The deadsnakes ppa is quite awesome