# RockyLinux 9 update to latest python

**URL:** <https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [April 24, 2024, 2:46pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722 "2024-04-24T14:46:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefaniecg](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@stefaniecg](https://forums.rockylinux.org/u/stefaniecg)\
**Post date:** [April 24, 2024, 2:46pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/1 "2024-04-24T14:46:06Z")

</div>

When will the latest version of python 3.12 be supported in Rocky Linux 9?  
My current installation has python 3.9  
I’d love to upgrade, would it break stuff if i did?

Thank you for your help !

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 24, 2024, 2:49pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/2 "2024-04-24T14:49:57Z")

</div>

Python 3.12 will be available next month when 9.4 is released. It will _not_ upgrade python 3.9. Python 3.9 will remain the default system python.

---

<div class="post-metadata">

**Author:** ![stefaniecg](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@stefaniecg](https://forums.rockylinux.org/u/stefaniecg)\
**Post date:** [April 24, 2024, 2:57pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/3 "2024-04-24T14:57:56Z")

</div>

hi @label thank you for your input.  
So next month, when I update Rocky Linux to the 9.4 release, it will come already with python 3.12.  
Is this correct?

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 24, 2024, 3:23pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/4 "2024-04-24T15:23:39Z")

</div>

It will not come with python 3.12 by default. You will need to install it yourself. python 3.9 will remain the default python, regardless if you install python 3.12 or not.

---

<div class="post-metadata">

**Author:** ![stefaniecg](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@stefaniecg](https://forums.rockylinux.org/u/stefaniecg)\
**Post date:** [April 24, 2024, 6:34pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/5 "2024-04-24T18:34:47Z")

</div>

ok, then my question now is:  
do i have to wait for RL9.4 or can i install python 3.12 now with my current RL9.3 ? 🙂

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [April 24, 2024, 8:28pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/6 "2024-04-24T20:28:01Z")

</div>

As I’ve explained, python 3.12 will be available next month when 9.4 is released

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [April 25, 2024, 6:38am UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/7 "2024-04-25T06:38:00Z")

</div>

> [@stefaniecg](#):
>
> do i have to wait for RL9.4 or can i install python 3.12 now with my current RL9.3 ? 🙂

_Yes._

One has to realize that there are _system_ and _user_. There are _system applications_, for example the package manager, that are Python programs. The system has a “platform Python” for them and that has version “3.9” all the way to 2032. Those (RPM) packages will not go away.

Then there is user. User can have their own applications. They are preferably installed as RPM packages. These packages are not needed for the system to run; they are used by the user.  
The `python3.12` will be such package. Red Hat will release it with the RHEL 9.4, and Rocky after that.

* * *

Is it possible to find (or rebuild) similar RPM package already now? Perhaps, but that is all on you.

Everything is not available as RPM package. You can even write programs yourself. If you want your account to have a program, then of course it can – but do not do `sudo make install`. Rather set the _prefix_ to something safer that you can write to, like `~/.local`  
That way you won’t have the risk to mess the entire system.

Can you _have_ Python 3.12 now? Yes  
Can you _install_ Python 3.12 (to system) now? No, you should not

---

<div class="post-metadata">

**Author:** ![robbott](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@robbott](https://forums.rockylinux.org/u/robbott)\
**Post date:** [April 25, 2024, 7:51pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/8 "2024-04-25T19:51:41Z")

</div>

Maybe you could use [GitHub - pyenv/pyenv: Simple Python version management](https://github.com/pyenv/pyenv) and a venv.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [April 25, 2024, 7:57pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/9 "2024-04-25T19:57:19Z")

</div>

IMHO, that does a different thing. That selects which of the multiple Python versions is used. One has to have those Pythons before one can choose at all.

---

<div class="post-metadata">

**Author:** ![robbott](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@robbott](https://forums.rockylinux.org/u/robbott)\
**Post date:** [April 25, 2024, 9:10pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/10 "2024-04-25T21:10:23Z")

</div>

see [GitHub - pyenv/pyenv: Simple Python version management](https://github.com/pyenv/pyenv?tab=readme-ov-file#install-additional-python-versions)

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [April 25, 2024, 10:20pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/11 "2024-04-25T22:20:57Z")

</div>

My bad, didn’t read all at once.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [June 24, 2024, 10:21pm UTC](https://forums.rockylinux.org/t/rockylinux-9-update-to-latest-python/13722/12 "2024-06-24T22:21:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
