this post was submitted on 02 Jan 2026
32 points (84.8% liked)

Linux

10965 readers
419 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
 

I wanted to start contributing to an open source software project yesterday evening, and they recommend virtual box to not mess with your default installation of the program and the databases it uses.

So I thought Debian would be a nice clean distro for developing Python... Gnome feels really unusual to me and I hate it, I guess I can replace it with KDE.

But I couldn't install a specific Python version? System python is 3.13 but I needed 3.10. I tried adding the deadsnake ppa but Debian didn't know the add-apt-repository command. So I tried to install software-properties-common which also failed because the package couldn't be located. Someone on SO said it was removed because security but I mean wtf? So the solution is to add this package cgabbelt manually to sources.list but I couldn't get it to run because I couldn't verify the GPG key... Then I went to sleep.

I am pretty sure this community can help with the problem, but honestly, wtf? I am not a Linux power user but a data scientist who works on Linux for a couple of years now, how is it possible installing a specific Python version is such a hassle?

Is Debian just a poor choice for developing? The software I want to contribute to has many dependencies, they recommend Ubuntu but fuck Ubuntu. So I guess I can't take something too exotic.

you are viewing a single comment's thread
view the rest of the comments
[–] gigachad@piefed.social 7 points 6 days ago (1 children)

I know venv pretty well, but it does not do it for this project. It's not about isolating the Python libraries, but the system libraries and more importantly the databases the program itself creates. Also I would never install packages into a Python system installation.

[–] Successful_Try543@feddit.org 9 points 6 days ago* (last edited 6 days ago) (1 children)

As @solrize@lemmy.ml already mentioned: Download the python 3.10 source tarball from python.org, unpack, compile and install it. Then run the python3.10 binary with the venv option in the path where you want your venv to be created. By this, the created venv is configured to use the desired (3.10) version of python, not your system's default version.

[–] joyjoy@lemmy.zip 1 points 5 days ago

If you're gonna compile python, I'd suggest using pyenv to automate the process and provide stubs.