Problem for installing package for specific Python version via apt-get on Raspberry Pi

260 views Asked by At

I have two Python versions on my Pi4: 3.11 is default and I manually added 3.9. Both are working fine. Now I have to install a package via apt-get, because there is no pip version of it: sudo apt-get install python3-pycoral

The problem is now that the package requires a Python version < 3.10 but apt-get is always trying to install it for Python 3.11.

I tried to set an alias in my path. So when I call python or python3 from terminal, Python 3.9 opens. I also tried to find a way to change the default Python path for get-apt downloaded packages, but I found out that is is not possible.

0

There are 0 answers