You are viewing a single thread.
View all comments
4 points

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?
permalink
report
reply
21 points

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

permalink
report
parent
reply
8 points
*

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

permalink
report
parent
reply
9 points

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

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
1 point

The deadsnakes ppa is quite awesome

permalink
report
parent
reply

Python

!python@programming.dev

Create post

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

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 431

    Monthly active users

  • 455

    Posts

  • 2.2K

    Comments