You are not logged in.

#1 2021-12-13 09:20:37

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 44
Website

[SOLVED] How to install Python 3.9?

I updated Python to 3.10 with bulk system update. However, I need Python 3.9 for development purposes (testing and compatibility with an existing program ROOT). How can I install Python 3.9?

$ yay -S python39
-> Could not find all required packages:
    python39 (Target)

(which I did earlier with Python 3.5, etc) or

$ sudo pacman -S python39
error: target not found: python39

don't work;

$ pacman -Ss python3
core/python 3.10
...

doesn't show python 3.9.

Last edited by ynikitenko (2021-12-13 12:21:23)

Offline

#2 2021-12-13 09:21:59

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 44
Website

Re: [SOLVED] How to install Python 3.9?

I also looked at old versions on https://wiki.archlinux.org/title/Python#Old_versions, but 3.9 is missing there.

Offline

#3 2021-12-13 09:32:49

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 680

Re: [SOLVED] How to install Python 3.9?

Use pyenv which is in the standard packages.

Offline

#4 2021-12-13 11:49:06

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 44
Website

Re: [SOLVED] How to install Python 3.9?

Thanks for the suggestion. I decided to compile a slightly more recent ROOT version anew with Python 3.10. However, I think that a system package for Python 3.9 would be easier and more coherent with other old Python versions (I wrote to AUR about that, https://aur.archlinux.org/packages/python310).

Offline

#5 2021-12-13 12:04:09

rixxian
Member
Registered: 2021-12-13
Posts: 1

Re: [SOLVED] How to install Python 3.9?

Please either use pyenv as recommended above, or use the AUR package python39. This package had been removed after Python 3.9 became the distributed Python version, I've made it available again now that Python 3.10 is the primary version.

Offline

#6 2021-12-13 12:20:14

ynikitenko
Member
From: Aachen, Germany
Registered: 2020-11-15
Posts: 44
Website

Re: [SOLVED] How to install Python 3.9?

Yes, the AUR package works fine. Many thanks for your work!

Offline

Board footer

Powered by FluxBB