{"id":11827,"date":"2022-02-02T17:40:35","date_gmt":"2022-02-02T22:40:35","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=11827"},"modified":"2022-02-03T03:10:16","modified_gmt":"2022-02-03T08:10:16","slug":"how-to-install-python-3-10-on-centos-7-centos-8-linux-systems","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/","title":{"rendered":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems"},"content":{"rendered":"\n
This guide explains how to install Python 3.10 on CentOS 7 and CentOS 8 Linux systems. We have a similar guide<\/a> for those users on Ubuntu and Debian-based systems such as LinuxMint among others.<\/p>\n\n\n\n Because the default CentOS repositories do not carry the latest version of Python we need to use the methods described below to install Python 3.10 on CentOS 7 or 8.<\/p>\n\n\n\n You need to be logged in as a non-root user with sudo privileges in order to follow along with this tutorial. Open the terminal and execute the following commands to update the installed packages.<\/p>\n\n\n\n Reboot the system after the completion of the updates:<\/p>\n\n\n\n Install required software development tools required to build the Python 3.10 source on CentOS 8 \/ CentOS 7:<\/p>\n\n\n\n At this point, if you do not have wget on your system then you can install it using this command<\/p>\n\n\n\n Use wget to download Python 3.10 Archive:<\/p>\n\n\n\n Extract the archive file using tar:<\/p>\n\n\n\n Switch to the directory created from the file extraction:<\/p>\n\n\n\n Run this command to configure the build parameters:<\/p>\n\n\n\n Now build the Python 3.10 source using this command:<\/p>\n\n\n\n After a little while the build should complete successfully and can be confirmed using this command:<\/p>\n\n\n\n Pip 3.10 will have been installed and you can run this command to confirm the pip installation:<\/p>\n\n\n\n That’s all there is to it. You now have the latest version of Python 3.10 on CentOS 7 | CentOS 8. Remember you can check the latest version of Python from the source release page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" This guide explains how to install Python 3.10 on CentOS 7 and CentOS 8 Linux systems. We have a similar guide for those users on Ubuntu and Debian-based systems such…<\/p>\n","protected":false},"author":1,"featured_media":11829,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,25,27,28,16,18],"tags":[121,350,354,424,433,472,475,544,545,591],"yoast_head":"\nStep 1: Update Your CentOS 7 or CentOS 8 System<\/h2>\n\n\n\n
$ sudo yum -y install epel-release\n$ sudo yum -y update<\/code><\/pre>\n\n\n\n
$ sudo reboot<\/code><\/pre>\n\n\n\n
Step 2: Install Python Dependencies<\/h2>\n\n\n\n
$ sudo yum groupinstall "Development Tools" -y\n$ sudo yum install openssl-devel libffi-devel bzip2-devel -y<\/code><\/pre>\n\n\n\n
Step 3: Download latest Python 3.10 Archive<\/h2>\n\n\n\n
$ sudo yum install wget -y<\/code><\/pre>\n\n\n\n
wget https:\/\/www.python.org\/ftp\/python\/3.10.2\/Python-3.10.2.tgz<\/code><\/pre>\n\n\n\n
$ sudo tar xvf Python-3.10.2.tgz<\/code><\/pre>\n\n\n\n
$ cd Python-3.10.2<\/code><\/pre>\n\n\n\n
Step 4: Configure and Install Python 3.10 on CentOS 7 and 8<\/h2>\n\n\n\n
$ .\/configure --enable-optimizations<\/code><\/pre>\n\n\n\n
$ sudo make altinstall<\/code><\/pre>\n\n\n\n
$ python3.10 --version\nPython 3.10.2<\/code><\/pre>\n\n\n\n
$ pip3.10 --version\npip 22.0.2 from \/usr\/local\/lib\/python3.10\/site-packages\/pip (python 3.10)<\/code><\/pre>\n\n\n\n
Conclusion<\/h2>\n\n\n\n