{"id":12984,"date":"2023-01-27T12:46:56","date_gmt":"2023-01-27T17:46:56","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=12984"},"modified":"2023-01-27T12:47:01","modified_gmt":"2023-01-27T17:47:01","slug":"how-to-install-python-3-11-on-centos-7-centos-8-linux-systems","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/","title":{"rendered":"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems"},"content":{"rendered":"\n

This is an update to a guide we released on how to install Python 3.10 on CentOS. This time around we will show you how to install Python 3.11 on CentOS 7 and CentOS 8 Linux<\/a> Systems.<\/p>\n\n\n\n

This tutorial is for those who want the latest and greatest Python version seeing the default CentOS<\/a> repositories do not carry the latest version of Python<\/a>. So let’s get started.<\/p>\n\n\n\n

Step 1: Update Your CentOS 7 or CentOS 8 System<\/h2>\n\n\n\n

While logged in as anon-root user with sudo privileges, 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

Step 2: Install Python Dependencies<\/h2>\n\n\n\n

With our system up-to-date we can go ahead and install the software development dependencies required to build the Python 3.11 source code on CentOS 8 or 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.11 Source Archive<\/h2>\n\n\n\n

We will be using wget<\/strong> to download the archive. In case you do not have it on your system you can run this command to get it installed:<\/p>\n\n\n\n

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

Now we can use wget to download Python 3.11 Archive:<\/p>\n\n\n\n

$ wget https:\/\/www.python.org\/ftp\/python\/3.11.1\/Python-3.11.1.tgz<\/code><\/pre>\n\n\n\n

We will be using Python 3.11.1 in this tutorial but the steps should be the same for updated versions.<\/p>\n\n\n\n

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

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

Now, switch to the directory created from the file extraction:<\/p>\n\n\n\n

$ cd Python-3.11.1<\/code><\/pre>\n\n\n\n

Step 4: Configure and Install Python 3.11 on CentOS 7 or 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

You can now build the Python 3.11 source using this command:<\/p>\n\n\n\n

$ sudo make altinstall<\/code><\/pre>\n\n\n\n

Once all the activity is complete successfully you can confirm the install using this command:<\/p>\n\n\n\n

$ python3.11 --version\nPython 3.11.1<\/code><\/pre>\n\n\n\n

Bonus<\/strong>: Pip 3.11 will also be installed and you can run this command to confirm the pip installation:<\/p>\n\n\n\n

$ pip3.11 --version\npip 22.3.1 from \/usr\/local\/lib\/python3.11\/site-packages\/pip (python 3.11)<\/code><\/pre>\n\n\n\n

In Closing<\/h2>\n\n\n\n

You now have the latest version of Python 3.11 on CentOS 7 and CentOS 8. Remember if you follow the above tutorial be sure to substitute the commands using the latest version of Python from the source release page.<\/p>\n","protected":false},"excerpt":{"rendered":"

This is an update to a guide we released on how to install Python 3.10 on CentOS. This time around we will show you how to install Python 3.11 on…<\/p>\n","protected":false},"author":1,"featured_media":12985,"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,471,472,475,544,591,638],"yoast_head":"\nHow To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems<\/title>\n<meta name=\"description\" content=\"This updated tutorial guides you into installing Python 3.11 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-11-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.11 on CentOS 7 | CentOS 8 Linux Systems\" \/>\n<meta property=\"og:description\" content=\"This updated tutorial guides you into installing Python 3.11 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-11-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=\"2023-01-27T17:46:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-27T17:47:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.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-11-on-centos-7-centos-8-linux-systems\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems\",\"datePublished\":\"2023-01-27T17:46:56+00:00\",\"dateModified\":\"2023-01-27T17:47:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/\"},\"wordCount\":304,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg\",\"keywords\":[\"CentOS\",\"Libraries\",\"Linux\",\"Open Source\",\"Optimization\",\"Programming\",\"Programming Languages\",\"Python\",\"Software development\",\"Tools\",\"Web Development\"],\"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-11-on-centos-7-centos-8-linux-systems\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/\",\"url\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/\",\"name\":\"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg\",\"datePublished\":\"2023-01-27T17:46:56+00:00\",\"dateModified\":\"2023-01-27T17:47:01+00:00\",\"description\":\"This updated tutorial guides you into installing Python 3.11 on CentOS 7 or CentOS 8 Linux systems to have the latest version\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg\",\"width\":1280,\"height\":680,\"caption\":\"Install Python 3.11 on CentOS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/how-to-install-python-3-11-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.11 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:\/\/x.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.11 on CentOS 7 | CentOS 8 Linux Systems","description":"This updated tutorial guides you into installing Python 3.11 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-11-on-centos-7-centos-8-linux-systems\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems","og_description":"This updated tutorial guides you into installing Python 3.11 on CentOS 7 or CentOS 8 Linux systems to have the latest version","og_url":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2023-01-27T17:46:56+00:00","article_modified_time":"2023-01-27T17:47:01+00:00","og_image":[{"width":1280,"height":680,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.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-11-on-centos-7-centos-8-linux-systems\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems","datePublished":"2023-01-27T17:46:56+00:00","dateModified":"2023-01-27T17:47:01+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/"},"wordCount":304,"commentCount":0,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg","keywords":["CentOS","Libraries","Linux","Open Source","Optimization","Programming","Programming Languages","Python","Software development","Tools","Web Development"],"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-11-on-centos-7-centos-8-linux-systems\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/","url":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/","name":"How To Install Python 3.11 on CentOS 7 | CentOS 8 Linux Systems","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg","datePublished":"2023-01-27T17:46:56+00:00","dateModified":"2023-01-27T17:47:01+00:00","description":"This updated tutorial guides you into installing Python 3.11 on CentOS 7 or CentOS 8 Linux systems to have the latest version","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-on-centos-7-centos-8-linux-systems\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2023\/01\/install-python-3.11-on-centos.jpg","width":1280,"height":680,"caption":"Install Python 3.11 on CentOS"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/how-to-install-python-3-11-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.11 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:\/\/x.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\/12984"}],"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=12984"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/12984\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/12985"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=12984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=12984"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=12984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}