Python installation<\/a> folder and execute the following commands:<\/p>\n\n\n\ncd Python-3.12.0a1\n\n.\/configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions \n\n<\/pre>\n\n\n\nThis will prepare the Python installation and will configure it before compiling. Once done, you should get the following output:<\/p>\n\n\n\n
configure: creating Modules\/Setup.local\nconfigure: creating Makefile\nconfigure:\n\nIf you want a release build with all stable optimizations active (PGO, etc),\nplease run .\/configure --enable-optimizations<\/pre>\n\n\n\nNext, we need to compile the code and install Python with the following commands:<\/p>\n\n\n\n
make -j ${nproc}\n\nmake altinstall\n<\/pre>\n\n\n\nAfter the installation, you will receive the following output:<\/p>\n\n\n\n
\/usr\/bin\/install -c -m 755 Modules\/xxlimited_35.cpython-312-x86_64-linux-gnu.so \/usr\/local\/lib\/python3.12\/lib-dynload\/xxlimited_35.cpython-312-x86_64-linux-gnu.so\n\/usr\/bin\/install -c -m 644 .\/Misc\/python.man \\\n \/usr\/local\/share\/man\/man1\/python3.12.1\nif test \"xupgrade\" != \"xno\" ; then \\\n case upgrade in \\\n upgrade) ensurepip=\"--altinstall --upgrade\" ;; \\\n install|*) ensurepip=\"--altinstall\" ;; \\\n esac; \\\n .\/python -E -m ensurepip \\\n $ensurepip --root=\/ ; \\\nfi\nLooking in links: \/tmp\/tmp1hx29q38\nProcessing \/tmp\/tmp1hx29q38\/setuptools-65.5.0-py3-none-any.whl\nProcessing \/tmp\/tmp1hx29q38\/pip-22.3-py3-none-any.whl\nInstalling collected packages: setuptools, pip\nSuccessfully installed pip-22.3 setuptools-65.5.0\n<\/pre>\n\n\n\nNow, we need to create a symbolic link from the current Python folder.<\/p>\n\n\n\n
ln -s \/root\/Python-3.12.0a1\/python \/usr\/bin\/python3<\/pre>\n\n\n\nOnce the symbolic link is created, you can check the installed version:<\/p>\n\n\n\n
python3 -V<\/pre>\n\n\n\nYou should get the following output:<\/p>\n\n\n\n
[root@host ~]# python3 -V\nPython 3.12.0a1<\/pre>\n\n\n\nThat’s it. You successfully installed the latest Python 3.12<\/strong> version on AlmaLinux 9 OS. Now, you can start to use it in your applications. Of course, you do not have to do this setup on your own if you find it difficult. You can always contact our technical support and they will help you with any aspect of installation and configuration. All you need to do is to sign up for one of our Linux VPS plans<\/a> and submit a support ticket. We are available 24\/7.<\/p>\n\n\n\nIf you liked this about installing Python on AlmaLinux 9, please share it with your friends on social networks using the buttons on the left or simply leave a reply below.<\/p>\n","protected":false},"excerpt":{"rendered":"
If you do not already know, Python is a high-level programming language that supports multiple programming schemes, including object-oriented, functional, … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":46218,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2071,13],"tags":[1910,155],"yoast_head":"\nHow to Install Python on AlmaLinux 9 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n