You are not logged in.

#1 2025-09-19 14:59

theasmitkid
Member
From: NCT of Delhi
Registered: 2025-01-26
Posts: 348

Python 3.12/3.11 on Q4OS 6?

Been delaying my Q4OS 6 installation because there are a few AI/ML python packages i use, which are not yet ready for python 3.13 which debian Trixie uses.
I do remember trying to compile python 3.9 on my Q4OS 5 installation back in the day but it was a too long of a process and I don't really wanna go through that again.. i also don't want to multiboot various q4oses..

Is there any way to install python 3.12 or 3.11 in like /opt/python3.xx (so it doesn't break the base system) without needing to compile from source? Like is there any PPA which could maybe work out for me? If I need to compile nevertheless, how do I skip extras like python test suite n stuff..? I just need a python installation so I can code in peace, after it finishes I'd just run it in latest raspberry pi os (debian bookworm; python 3.12) on a 3b+

This is the only thing keeping me from trying Q4OS 6 which I was so impatiently waiting for, any help would be appreciated!


Coding & Robotics Enthusiast | Brave & Spck Editor @ Lenovo Tab 4 8 · Android 8.1 · 2GB · 16GB

Offline

#2 2025-09-19 20:59

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 790

Re: Python 3.12/3.11 on Q4OS 6?

theasmitkid wrote:

I just need a python installation so I can code in peace, after it finishes I'd just run it in latest raspberry pi os (debian bookworm; python 3.12) on a 3b+

If you really just want to code, you don't need any python installation.
Otherwise, since you can't install missing packages from Debian 13 repos, you might try to install them using `pip3 install <package>` within a venv.
Also, note that if you compile from source, there is an option `make altinstall` (see the comments at the beginning of the Makefile built by ./configure) that might fit your needs.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#3 2025-09-19 21:53

theasmitkid
Member
From: NCT of Delhi
Registered: 2025-01-26
Posts: 348

Re: Python 3.12/3.11 on Q4OS 6?

hchiper wrote:

If you really just want to code, you don't need any python installation.

well ofc i wanna test the code out too tongue

hchiper wrote:

Otherwise, since you can't install missing packages from Debian 13 repos, you might try to install them using `pip3 install <package>` within a venv.

those packages aren't ready for python 3.13 yet.. so its not even available on pip yet

hchiper wrote:

Also, note that if you compile from source, there is an option `make altinstall` (see the comments at the beginning of the Makefile built by ./configure) that might fit your needs.

ig i'd upgrade to q4os 6 anyway and just run python 3.11 or 3.12 on windows (dualboot)

Last edited by theasmitkid (2025-09-19 21:54)


Coding & Robotics Enthusiast | Brave & Spck Editor @ Lenovo Tab 4 8 · Android 8.1 · 2GB · 16GB

Offline

#4 2025-09-20 14:19

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 790

Re: Python 3.12/3.11 on Q4OS 6?

Just for my information, I'm curious to know the names of those AI/ML packages usable with python 3.12 that need newer version to be usable with python 3.13.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#5 2025-09-20 14:21

theasmitkid
Member
From: NCT of Delhi
Registered: 2025-01-26
Posts: 348

Re: Python 3.12/3.11 on Q4OS 6?

Well mediapipe for starters, i could use dlib like i did two years ago but mediapipe tasks and solutions are just way faster

numpy 1.26.X is also for upto python 3.12 only

(Been working with 1.* since the start and heard that 2.* brings a lots of changes, tried out running the old codes with 2.* but didn't work out well so decided to stick with 1.* for now)

Last edited by theasmitkid (2025-09-20 14:29)


Coding & Robotics Enthusiast | Brave & Spck Editor @ Lenovo Tab 4 8 · Android 8.1 · 2GB · 16GB

Offline

#6 2025-09-20 17:55

hchiper
Member
From: Belgium
Registered: 2020-07-28
Posts: 790

Re: Python 3.12/3.11 on Q4OS 6?

Thanks for your response. It was the occasion for me to learn more about source packages and binary packages (wheels).
Now I understand your problem much better: mediapipe has no source package available, only wheels, but none for python 3.13 yet.


Q4OS machine: Samsung R519 - Pentium T4200 2.0 GHz - 4 GB RAM - 500 GB SSD

Offline

#7 2025-09-20 18:21

theasmitkid
Member
From: NCT of Delhi
Registered: 2025-01-26
Posts: 348

Re: Python 3.12/3.11 on Q4OS 6?

Yup, no problem ^^


Coding & Robotics Enthusiast | Brave & Spck Editor @ Lenovo Tab 4 8 · Android 8.1 · 2GB · 16GB

Offline

Board footer

Powered by FluxBB