Python Update Alternatives Not Working?

If none of the more specific forums is the right place to ask
Post Reply
Message
Author
dachshund-digital
Posts: 4
Joined: 2021-12-23 22:22

Python Update Alternatives Not Working?

#1 Post by dachshund-digital »

I can't seem to get python link to show 3.9.9... It always points to 3.9.2, Debian 11 default. In fact, python3 is not shifting to 3.9.9 either. But update-alternatives seems to be setup right.

# update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.9 2 auto mode
1 /usr/bin/python3 1 manual mode
* 2 /usr/bin/python3.9 2 manual mode

Press <enter> to keep the current choice[*], or type selection number:

# ls -l /usr/bin/python*
lrwxrwxrwx 1 root root 24 Jan 14 07:48 /usr/bin/python -> /etc/alternatives/python
lrwxrwxrwx 1 root root 9 Apr 5 2021 /usr/bin/python3 -> python3.9
-rwxr-xr-x 1 root root 4703672 Mar 11 2021 /usr/bin/python3.9
lrwxrwxrwx 1 root root 36 Mar 11 2021 /usr/bin/python3.9-config -> arm-linux-gnueabihf-python3.9-config
lrwxrwxrwx 1 root root 16 Apr 5 2021 /usr/bin/python3-config -> python3.9-config

# python --version
Python 3.9.2

# python3 --version
Python 3.9.2

canci
Posts: 1938
Joined: 2006-09-24 11:28
Has thanked: 11 times
Been thanked: 28 times

Re: Python Update Alternatives Not Working?

#2 Post by canci »

Did you install 3.9.9 manually? update-alternatives won't show manually installed options. I'm not sure how to manually add those, but maybe the manpage has more?
🍥

Asus VivoBook X421DA D413DA 1.0
Debian GNU/Linux 11 (bullseye) x86_64 Kernel 5.10
sway on Wayland
AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (Picasso)
8 GB RAM, 512MB NVMe drive

Post Reply