{"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

Step 1: Update Your CentOS 7 or CentOS 8 System<\/h2>\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

$ sudo yum -y install epel-release\n$ sudo yum -y update<\/code><\/pre>\n\n\n\n

Reboot the system after the completion of the updates:<\/p>\n\n\n\n

$ sudo reboot<\/code><\/pre>\n\n\n\n

Step 2: Install Python Dependencies<\/h2>\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

$ 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

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

$ sudo yum install wget -y<\/code><\/pre>\n\n\n\n

Use wget to download Python 3.10 Archive:<\/p>\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

Extract the archive file using tar:<\/p>\n\n\n\n

$ sudo tar xvf Python-3.10.2.tgz<\/code><\/pre>\n\n\n\n

Switch to the directory created from the file extraction:<\/p>\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

Run this command to configure the build parameters:<\/p>\n\n\n\n

$ .\/configure --enable-optimizations<\/code><\/pre>\n\n\n\n

Now build the Python 3.10 source using this command:<\/p>\n\n\n\n

$ sudo make altinstall<\/code><\/pre>\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

$ python3.10 --version\nPython 3.10.2<\/code><\/pre>\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

$ 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

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":"\nHow To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems<\/title>\n<meta name=\"description\" content=\"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems\" \/>\n<meta property=\"og:description\" content=\"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-02T22:40:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T08:10:16+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems\",\"datePublished\":\"2022-02-02T22:40:35+00:00\",\"dateModified\":\"2022-02-03T08:10:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\"},\"wordCount\":270,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg\",\"keywords\":[\"CentOS\",\"Libraries\",\"Linux\",\"Open Source\",\"Optimization\",\"Programming Languages\",\"Python\",\"Software development\",\"Software Engineering\",\"Tools\"],\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Libraries\",\"Programming\",\"Software\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\",\"url\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\",\"name\":\"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg\",\"datePublished\":\"2022-02-02T22:40:35+00:00\",\"dateModified\":\"2022-02-03T08:10:16+00:00\",\"description\":\"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Install Python 3.10 on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/twitter.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems","description":"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems","og_description":"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version","og_url":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2022-02-02T22:40:35+00:00","article_modified_time":"2022-02-03T08:10:16+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems","datePublished":"2022-02-02T22:40:35+00:00","dateModified":"2022-02-03T08:10:16+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/"},"wordCount":270,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg","keywords":["CentOS","Libraries","Linux","Open Source","Optimization","Programming Languages","Python","Software development","Software Engineering","Tools"],"articleSection":["Articles","Guides","How To","Libraries","Programming","Software","Technology","Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/","url":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/","name":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg","datePublished":"2022-02-02T22:40:35+00:00","dateModified":"2022-02-03T08:10:16+00:00","description":"With this tutorial you can follow along to install Python 3.10 on CentOS 7 or CentOS 8 Linux systems to have the latest version","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2022\/02\/Install-Python-3.10-on-CentOS-7.jpg","width":1280,"height":680,"caption":"Install Python 3.10 on CentOS 7"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-10-on-centos-7-centos-8-linux-systems\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How To Install Python 3.10 on CentOS 7 | CentOS 8 Linux Systems"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/twitter.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/11827"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=11827"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/11827\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/11829"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=11827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=11827"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=11827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}