On 2025-03-10 14:36, Andrey Rakhmatullin wrote:
On Mon, Mar 10, 2025 at 07:06:57PM +0100, Christian BAYLE wrote:
I just encountered recently a few venv that require 3.10 to work in at least 2 ai stable diffusion software, really difficult to package right now.

Not sure what do you mean by venv but for local use you aren't required to use Python interpreters from the distribution and can e.g. use pyenv to install any other one.

I was in fact about to suggest the same thing Andrey did here. For any local-use stuff which requires one or more Python versions beyond the system-installed Python version, this is my recommended solution to use pyenv and then have the local installs alongside Debian's installed Python.

I also want to make a few things known about 'downstream' 'in Ubuntu that you refer to. The problem we see routinely 'downstream' is people try and change their Python version away from the system preferred Python version, thus breaking things. It happens way more than I'd like to admit (just look at Ask Ubuntu and the number of python errors we can attribute to User Error in this exact way), and usually I suggest pyenv [1] to allow userspace installations of Python isolated from system Python that works for those cases you need older versions.

I do this routinely even downstream on other distros. In fact, wherever you are required to use *older* Python or *newer* Python than is available in your distro - Debian, Ubuntu, Mint, etc. - I always point at PyEnv as a solution.


Thomas


[1]: https://github.com/pyenv/pyenv

Reply via email to