CINXE.COM
How to Install Python 3.10 (or 3.11) on CentOS - Linux Stans
<!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" lang="en-US"> <![endif]--> <!--[if IE 8]> <html class="ie ie8" lang="en-US"> <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html lang="en-US" class="no-js"> <!--<![endif]--> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="pingback" href="https://linuxstans.com/xmlrpc.php" /> <script data-cfasync="false" data-no-defer="1" data-no-minify="1" data-no-optimize="1">var ewww_webp_supported=!1;function check_webp_feature(A,e){var w;e=void 0!==e?e:function(){},ewww_webp_supported?e(ewww_webp_supported):((w=new Image).onload=function(){ewww_webp_supported=0<w.width&&0<w.height,e&&e(ewww_webp_supported)},w.onerror=function(){e&&e(!1)},w.src="data:image/webp;base64,"+{alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA=="}[A])}check_webp_feature("alpha");</script><script data-cfasync="false" data-no-defer="1" data-no-minify="1" data-no-optimize="1">var Arrive=function(c,w){"use strict";if(c.MutationObserver&&"undefined"!=typeof HTMLElement){var r,a=0,u=(r=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector,{matchesSelector:function(e,t){return e instanceof HTMLElement&&r.call(e,t)},addMethod:function(e,t,r){var a=e[t];e[t]=function(){return r.length==arguments.length?r.apply(this,arguments):"function"==typeof a?a.apply(this,arguments):void 0}},callCallbacks:function(e,t){t&&t.options.onceOnly&&1==t.firedElems.length&&(e=[e[0]]);for(var r,a=0;r=e[a];a++)r&&r.callback&&r.callback.call(r.elem,r.elem);t&&t.options.onceOnly&&1==t.firedElems.length&&t.me.unbindEventWithSelectorAndCallback.call(t.target,t.selector,t.callback)},checkChildNodesRecursively:function(e,t,r,a){for(var i,n=0;i=e[n];n++)r(i,t,a)&&a.push({callback:t.callback,elem:i}),0<i.childNodes.length&&u.checkChildNodesRecursively(i.childNodes,t,r,a)},mergeArrays:function(e,t){var r,a={};for(r in e)e.hasOwnProperty(r)&&(a[r]=e[r]);for(r in t)t.hasOwnProperty(r)&&(a[r]=t[r]);return a},toElementsArray:function(e){return e=void 0!==e&&("number"!=typeof e.length||e===c)?[e]:e}}),e=(l.prototype.addEvent=function(e,t,r,a){a={target:e,selector:t,options:r,callback:a,firedElems:[]};return this._beforeAdding&&this._beforeAdding(a),this._eventsBucket.push(a),a},l.prototype.removeEvent=function(e){for(var t,r=this._eventsBucket.length-1;t=this._eventsBucket[r];r--)e(t)&&(this._beforeRemoving&&this._beforeRemoving(t),(t=this._eventsBucket.splice(r,1))&&t.length&&(t[0].callback=null))},l.prototype.beforeAdding=function(e){this._beforeAdding=e},l.prototype.beforeRemoving=function(e){this._beforeRemoving=e},l),t=function(i,n){var o=new e,l=this,s={fireOnAttributesModification:!1};return o.beforeAdding(function(t){var e=t.target;e!==c.document&&e!==c||(e=document.getElementsByTagName("html")[0]);var r=new MutationObserver(function(e){n.call(this,e,t)}),a=i(t.options);r.observe(e,a),t.observer=r,t.me=l}),o.beforeRemoving(function(e){e.observer.disconnect()}),this.bindEvent=function(e,t,r){t=u.mergeArrays(s,t);for(var a=u.toElementsArray(this),i=0;i<a.length;i++)o.addEvent(a[i],e,t,r)},this.unbindEvent=function(){var r=u.toElementsArray(this);o.removeEvent(function(e){for(var t=0;t<r.length;t++)if(this===w||e.target===r[t])return!0;return!1})},this.unbindEventWithSelectorOrCallback=function(r){var a=u.toElementsArray(this),i=r,e="function"==typeof r?function(e){for(var t=0;t<a.length;t++)if((this===w||e.target===a[t])&&e.callback===i)return!0;return!1}:function(e){for(var t=0;t<a.length;t++)if((this===w||e.target===a[t])&&e.selector===r)return!0;return!1};o.removeEvent(e)},this.unbindEventWithSelectorAndCallback=function(r,a){var i=u.toElementsArray(this);o.removeEvent(function(e){for(var t=0;t<i.length;t++)if((this===w||e.target===i[t])&&e.selector===r&&e.callback===a)return!0;return!1})},this},i=new function(){var s={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};function n(e,t,r){return!(!u.matchesSelector(e,t.selector)||(e._id===w&&(e._id=a++),-1!=t.firedElems.indexOf(e._id)))&&(t.firedElems.push(e._id),!0)}var c=(i=new t(function(e){var t={attributes:!1,childList:!0,subtree:!0};return e.fireOnAttributesModification&&(t.attributes=!0),t},function(e,i){e.forEach(function(e){var t=e.addedNodes,r=e.target,a=[];null!==t&&0<t.length?u.checkChildNodesRecursively(t,i,n,a):"attributes"===e.type&&n(r,i)&&a.push({callback:i.callback,elem:r}),u.callCallbacks(a,i)})})).bindEvent;return i.bindEvent=function(e,t,r){t=void 0===r?(r=t,s):u.mergeArrays(s,t);var a=u.toElementsArray(this);if(t.existing){for(var i=[],n=0;n<a.length;n++)for(var o=a[n].querySelectorAll(e),l=0;l<o.length;l++)i.push({callback:r,elem:o[l]});if(t.onceOnly&&i.length)return r.call(i[0].elem,i[0].elem);setTimeout(u.callCallbacks,1,i)}c.call(this,e,t,r)},i},o=new function(){var a={};function i(e,t){return u.matchesSelector(e,t.selector)}var n=(o=new t(function(){return{childList:!0,subtree:!0}},function(e,r){e.forEach(function(e){var t=e.removedNodes,e=[];null!==t&&0<t.length&&u.checkChildNodesRecursively(t,r,i,e),u.callCallbacks(e,r)})})).bindEvent;return o.bindEvent=function(e,t,r){t=void 0===r?(r=t,a):u.mergeArrays(a,t),n.call(this,e,t,r)},o};d(HTMLElement.prototype),d(NodeList.prototype),d(HTMLCollection.prototype),d(HTMLDocument.prototype),d(Window.prototype);var n={};return s(i,n,"unbindAllArrive"),s(o,n,"unbindAllLeave"),n}function l(){this._eventsBucket=[],this._beforeAdding=null,this._beforeRemoving=null}function s(e,t,r){u.addMethod(t,r,e.unbindEvent),u.addMethod(t,r,e.unbindEventWithSelectorOrCallback),u.addMethod(t,r,e.unbindEventWithSelectorAndCallback)}function d(e){e.arrive=i.bindEvent,s(i,e,"unbindArrive"),e.leave=o.bindEvent,s(o,e,"unbindLeave")}}(window,void 0),ewww_webp_supported=!1;function check_webp_feature(e,t){var r;ewww_webp_supported?t(ewww_webp_supported):((r=new Image).onload=function(){ewww_webp_supported=0<r.width&&0<r.height,t(ewww_webp_supported)},r.onerror=function(){t(!1)},r.src="data:image/webp;base64,"+{alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[e])}function ewwwLoadImages(e){if(e){for(var t=document.querySelectorAll(".batch-image img, .image-wrapper a, .ngg-pro-masonry-item a, .ngg-galleria-offscreen-seo-wrapper a"),r=0,a=t.length;r<a;r++)ewwwAttr(t[r],"data-src",t[r].getAttribute("data-webp")),ewwwAttr(t[r],"data-thumbnail",t[r].getAttribute("data-webp-thumbnail"));for(var i=document.querySelectorAll("div.woocommerce-product-gallery__image"),r=0,a=i.length;r<a;r++)ewwwAttr(i[r],"data-thumb",i[r].getAttribute("data-webp-thumb"))}for(var n=document.querySelectorAll("video"),r=0,a=n.length;r<a;r++)ewwwAttr(n[r],"poster",e?n[r].getAttribute("data-poster-webp"):n[r].getAttribute("data-poster-image"));for(var o,l=document.querySelectorAll("img.ewww_webp_lazy_load"),r=0,a=l.length;r<a;r++)e&&(ewwwAttr(l[r],"data-lazy-srcset",l[r].getAttribute("data-lazy-srcset-webp")),ewwwAttr(l[r],"data-srcset",l[r].getAttribute("data-srcset-webp")),ewwwAttr(l[r],"data-lazy-src",l[r].getAttribute("data-lazy-src-webp")),ewwwAttr(l[r],"data-src",l[r].getAttribute("data-src-webp")),ewwwAttr(l[r],"data-orig-file",l[r].getAttribute("data-webp-orig-file")),ewwwAttr(l[r],"data-medium-file",l[r].getAttribute("data-webp-medium-file")),ewwwAttr(l[r],"data-large-file",l[r].getAttribute("data-webp-large-file")),null!=(o=l[r].getAttribute("srcset"))&&!1!==o&&o.includes("R0lGOD")&&ewwwAttr(l[r],"src",l[r].getAttribute("data-lazy-src-webp"))),l[r].className=l[r].className.replace(/\bewww_webp_lazy_load\b/,"");for(var s=document.querySelectorAll(".ewww_webp"),r=0,a=s.length;r<a;r++)e?(ewwwAttr(s[r],"srcset",s[r].getAttribute("data-srcset-webp")),ewwwAttr(s[r],"src",s[r].getAttribute("data-src-webp")),ewwwAttr(s[r],"data-orig-file",s[r].getAttribute("data-webp-orig-file")),ewwwAttr(s[r],"data-medium-file",s[r].getAttribute("data-webp-medium-file")),ewwwAttr(s[r],"data-large-file",s[r].getAttribute("data-webp-large-file")),ewwwAttr(s[r],"data-large_image",s[r].getAttribute("data-webp-large_image")),ewwwAttr(s[r],"data-src",s[r].getAttribute("data-webp-src"))):(ewwwAttr(s[r],"srcset",s[r].getAttribute("data-srcset-img")),ewwwAttr(s[r],"src",s[r].getAttribute("data-src-img"))),s[r].className=s[r].className.replace(/\bewww_webp\b/,"ewww_webp_loaded");window.jQuery&&jQuery.fn.isotope&&jQuery.fn.imagesLoaded&&(jQuery(".fusion-posts-container-infinite").imagesLoaded(function(){jQuery(".fusion-posts-container-infinite").hasClass("isotope")&&jQuery(".fusion-posts-container-infinite").isotope()}),jQuery(".fusion-portfolio:not(.fusion-recent-works) .fusion-portfolio-wrapper").imagesLoaded(function(){jQuery(".fusion-portfolio:not(.fusion-recent-works) .fusion-portfolio-wrapper").isotope()}))}function ewwwWebPInit(e){ewwwLoadImages(e),ewwwNggLoadGalleries(e),document.arrive(".ewww_webp",function(){ewwwLoadImages(e)}),document.arrive(".ewww_webp_lazy_load",function(){ewwwLoadImages(e)}),document.arrive("videos",function(){ewwwLoadImages(e)}),"loading"==document.readyState?document.addEventListener("DOMContentLoaded",ewwwJSONParserInit):("undefined"!=typeof galleries&&ewwwNggParseGalleries(e),ewwwWooParseVariations(e))}function ewwwAttr(e,t,r){null!=r&&!1!==r&&e.setAttribute(t,r)}function ewwwJSONParserInit(){"undefined"!=typeof galleries&&check_webp_feature("alpha",ewwwNggParseGalleries),check_webp_feature("alpha",ewwwWooParseVariations)}function ewwwWooParseVariations(e){if(e)for(var t=document.querySelectorAll("form.variations_form"),r=0,a=t.length;r<a;r++){var i=t[r].getAttribute("data-product_variations"),n=!1;try{for(var o in i=JSON.parse(i))void 0!==i[o]&&void 0!==i[o].image&&(void 0!==i[o].image.src_webp&&(i[o].image.src=i[o].image.src_webp,n=!0),void 0!==i[o].image.srcset_webp&&(i[o].image.srcset=i[o].image.srcset_webp,n=!0),void 0!==i[o].image.full_src_webp&&(i[o].image.full_src=i[o].image.full_src_webp,n=!0),void 0!==i[o].image.gallery_thumbnail_src_webp&&(i[o].image.gallery_thumbnail_src=i[o].image.gallery_thumbnail_src_webp,n=!0),void 0!==i[o].image.thumb_src_webp&&(i[o].image.thumb_src=i[o].image.thumb_src_webp,n=!0));n&&ewwwAttr(t[r],"data-product_variations",JSON.stringify(i))}catch(e){}}}function ewwwNggParseGalleries(e){if(e)for(var t in galleries){var r=galleries[t];galleries[t].images_list=ewwwNggParseImageList(r.images_list)}}function ewwwNggLoadGalleries(e){e&&document.addEventListener("ngg.galleria.themeadded",function(e,t){window.ngg_galleria._create_backup=window.ngg_galleria.create,window.ngg_galleria.create=function(e,t){var r=$(e).data("id");return galleries["gallery_"+r].images_list=ewwwNggParseImageList(galleries["gallery_"+r].images_list),window.ngg_galleria._create_backup(e,t)}})}function ewwwNggParseImageList(e){for(var t in e){var r=e[t];if(void 0!==r["image-webp"]&&(e[t].image=r["image-webp"],delete e[t]["image-webp"]),void 0!==r["thumb-webp"]&&(e[t].thumb=r["thumb-webp"],delete e[t]["thumb-webp"]),void 0!==r.full_image_webp&&(e[t].full_image=r.full_image_webp,delete e[t].full_image_webp),void 0!==r.srcsets)for(var a in r.srcsets)nggSrcset=r.srcsets[a],void 0!==r.srcsets[a+"-webp"]&&(e[t].srcsets[a]=r.srcsets[a+"-webp"],delete e[t].srcsets[a+"-webp"]);if(void 0!==r.full_srcsets)for(var i in r.full_srcsets)nggFSrcset=r.full_srcsets[i],void 0!==r.full_srcsets[i+"-webp"]&&(e[t].full_srcsets[i]=r.full_srcsets[i+"-webp"],delete e[t].full_srcsets[i+"-webp"])}return e}check_webp_feature("alpha",ewwwWebPInit);</script><script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script> <title>How to Install Python 3.10 (or 3.11) on CentOS - Linux Stans</title> <style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style> <meta name="robots" content="max-snippet:-1,max-image-preview:standard,max-video-preview:-1" /> <link rel="canonical" href="https://linuxstans.com/how-to-install-python-centos/" /> <meta name="description" content="Detailed, beginner-friendly instructions on how to install Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8." /> <meta name="theme-color" content="#f8bf11" /> <meta property="og:type" content="article" /> <meta property="og:locale" content="en_US" /> <meta property="og:site_name" content="Linux Stans" /> <meta property="og:title" content="How to Install Python 3.10 (or 3.11) on CentOS" /> <meta property="og:description" content="Detailed, beginner-friendly instructions on how to install Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8." /> <meta property="og:url" content="https://linuxstans.com/how-to-install-python-centos/" /> <meta property="og:image" content="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-centos.jpeg" /> <meta property="og:image:width" content="1200" /> <meta property="og:image:height" content="628" /> <meta property="og:image:alt" content="How to Install Python on CentOS" /> <meta property="article:published_time" content="2022-01-24T15:21:34+00:00" /> <meta property="article:modified_time" content="2022-01-24T15:34:25+00:00" /> <meta property="article:author" content="https://www.facebook.com/LinuxFan5" /> <meta property="article:publisher" content="https://www.facebook.com/LinuxFan5" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@StansLinux" /> <meta name="twitter:creator" content="@linuxstans" /> <meta name="twitter:title" content="How to Install Python 3.10 (or 3.11) on CentOS" /> <meta name="twitter:description" content="Detailed, beginner-friendly instructions on how to install Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8." /> <meta name="twitter:image" content="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-centos.jpeg" /> <meta name="twitter:image:alt" content="How to Install Python on CentOS" /> <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://linuxstans.com/#/schema/WebSite","url":"https://linuxstans.com/","name":"Linux Stans","description":"Content by Linux Stans for Everyone","inLanguage":"en-US","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://linuxstans.com/search/{search_term_string}/"},"query-input":"required name=search_term_string"},"publisher":{"@type":"Organization","@id":"https://linuxstans.com/#/schema/Organization","name":"Linux Stans","url":"https://linuxstans.com/","logo":{"@type":"ImageObject","url":"https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png","contentUrl":"https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png","width":250,"height":100}}},{"@type":"WebPage","@id":"https://linuxstans.com/how-to-install-python-centos/","url":"https://linuxstans.com/how-to-install-python-centos/","name":"How to Install Python 3.10 (or 3.11) on CentOS - Linux Stans","description":"Detailed, beginner-friendly instructions on how to install Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8.","inLanguage":"en-US","isPartOf":{"@id":"https://linuxstans.com/#/schema/WebSite"},"breadcrumb":{"@type":"BreadcrumbList","@id":"https://linuxstans.com/#/schema/BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":"https://linuxstans.com/","name":"Linux Stans"},{"@type":"ListItem","position":2,"item":"https://linuxstans.com/category/tutorials/","name":"Category: Tutorials"},{"@type":"ListItem","position":3,"name":"How to Install Python 3.10 (or 3.11) on CentOS"}]},"potentialAction":{"@type":"ReadAction","target":"https://linuxstans.com/how-to-install-python-centos/"},"datePublished":"2022-01-24T15:21:34+00:00","dateModified":"2022-01-24T15:34:25+00:00","author":{"@type":"Person","@id":"https://linuxstans.com/#/schema/Person/67a2186663fe240c508d6746c8c88f1a","name":"Linux Stans","sameAs":["https://www.facebook.com/LinuxFan5","https://twitter.com/linuxstans"],"description":"The official Linux Stans account."}}]}</script> <link rel='dns-prefetch' href='//www.googletagmanager.com' /> <link rel='dns-prefetch' href='//pagead2.googlesyndication.com' /> <link rel="alternate" type="application/rss+xml" title="Linux Stans » Feed" href="https://linuxstans.com/feed/" /> <link rel="alternate" type="application/rss+xml" title="Linux Stans » Comments Feed" href="https://linuxstans.com/comments/feed/" /> <link rel="alternate" type="application/rss+xml" title="Linux Stans » How to Install Python 3.10 (or 3.11) on CentOS Comments Feed" href="https://linuxstans.com/how-to-install-python-centos/feed/" /> <script> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/linuxstans.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.7.2"}}; /*! This file is auto-generated */ !function(i,n){var o,s,e;function c(e){try{var t={supportTests:e,timestamp:(new Date).valueOf()};sessionStorage.setItem(o,JSON.stringify(t))}catch(e){}}function p(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);var t=new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),new Uint32Array(e.getImageData(0,0,e.canvas.width,e.canvas.height).data));return t.every(function(e,t){return e===r[t]})}function u(e,t,n){switch(t){case"flag":return n(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83d\udc26\u200d\u2b1b","\ud83d\udc26\u200b\u2b1b")}return!1}function f(e,t,n){var r="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?new OffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="600 32px Arial",{});return e.forEach(function(e){o[e]=t(a,e,n)}),o}function t(e){var t=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeof Promise&&(o="wpEmojiSettingsSupports",s=["flag","emoji"],n.supports={everything:!0,everythingExceptFlag:!0},e=new Promise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),new Promise(function(t){var n=function(){try{var e=JSON.parse(sessionStorage.getItem(o));if("object"==typeof e&&"number"==typeof e.timestamp&&(new Date).valueOf()<e.timestamp+604800&&"object"==typeof e.supportTests)return e.supportTests}catch(e){}return null}();if(!n){if("undefined"!=typeof Worker&&"undefined"!=typeof OffscreenCanvas&&"undefined"!=typeof URL&&URL.createObjectURL&&"undefined"!=typeof Blob)try{var e="postMessage("+f.toString()+"("+[JSON.stringify(s),u.toString(),p.toString()].join(",")+"));",r=new Blob([e],{type:"text/javascript"}),a=new Worker(URL.createObjectURL(r),{name:"wpTestEmojiSupports"});return void(a.onmessage=function(e){c(n=e.data),a.terminate(),t(n)})}catch(e){}c(n=f(s,u,p))}t(n)}).then(function(e){for(var t in e)n.supports[t]=e[t],n.supports.everything=n.supports.everything&&n.supports[t],"flag"!==t&&(n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&n.supports[t]);n.supports.everythingExceptFlag=n.supports.everythingExceptFlag&&!n.supports.flag,n.DOMReady=!1,n.readyCallback=function(){n.DOMReady=!0}}).then(function(){return e}).then(function(){var e;n.supports.everything||(n.readyCallback(),(e=n.source||{}).concatemoji?t(e.concatemoji):e.wpemoji&&e.twemoji&&(t(e.twemoji),t(e.wpemoji)))}))}((window,document),window._wpemojiSettings); </script> <style id='wp-emoji-styles-inline-css'> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 0.07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='wp-block-library-css' href='https://linuxstans.com/wp-includes/css/dist/block-library/style.min.css?ver=6.7.2' media='all' /> <link rel='stylesheet' id='mediaelement-css' href='https://linuxstans.com/wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=4.2.17' media='all' /> <link rel='stylesheet' id='wp-mediaelement-css' href='https://linuxstans.com/wp-includes/js/mediaelement/wp-mediaelement.min.css?ver=6.7.2' media='all' /> <style id='jetpack-sharing-buttons-style-inline-css'> .jetpack-sharing-buttons__services-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:0;list-style-type:none;margin:5px;padding:0}.jetpack-sharing-buttons__services-list.has-small-icon-size{font-size:12px}.jetpack-sharing-buttons__services-list.has-normal-icon-size{font-size:16px}.jetpack-sharing-buttons__services-list.has-large-icon-size{font-size:24px}.jetpack-sharing-buttons__services-list.has-huge-icon-size{font-size:36px}@media print{.jetpack-sharing-buttons__services-list{display:none!important}}.editor-styles-wrapper .wp-block-jetpack-sharing-buttons{gap:0;padding-inline-start:0}ul.jetpack-sharing-buttons__services-list.has-background{padding:1.25em 2.375em} </style> <style id='classic-theme-styles-inline-css'> /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} </style> <style id='global-styles-inline-css'> :root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} :where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} :root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;} </style> <link rel='stylesheet' id='spbcta-stylesheet-front-css' href='https://linuxstans.com/wp-content/plugins/coupon-reveal-button/css/spbcta-stylesheet-front.css?ver=1.2.7' media='all' /> <link rel='stylesheet' id='customizr-main-css' href='https://linuxstans.com/wp-content/themes/customizr/assets/front/css/style.min.css?ver=4.4.24' media='all' /> <style id='customizr-main-inline-css'> ::-moz-selection{background-color:#f8bf11}::selection{background-color:#f8bf11}a,.btn-skin:active,.btn-skin:focus,.btn-skin:hover,.btn-skin.inverted,.grid-container__classic .post-type__icon,.post-type__icon:hover .icn-format,.grid-container__classic .post-type__icon:hover .icn-format,[class*='grid-container__'] .entry-title a.czr-title:hover,input[type=checkbox]:checked::before{color:#f8bf11}.czr-css-loader > div ,.btn-skin,.btn-skin:active,.btn-skin:focus,.btn-skin:hover,.btn-skin-h-dark,.btn-skin-h-dark.inverted:active,.btn-skin-h-dark.inverted:focus,.btn-skin-h-dark.inverted:hover{border-color:#f8bf11}.tc-header.border-top{border-top-color:#f8bf11}[class*='grid-container__'] .entry-title a:hover::after,.grid-container__classic .post-type__icon,.btn-skin,.btn-skin.inverted:active,.btn-skin.inverted:focus,.btn-skin.inverted:hover,.btn-skin-h-dark,.btn-skin-h-dark.inverted:active,.btn-skin-h-dark.inverted:focus,.btn-skin-h-dark.inverted:hover,.sidebar .widget-title::after,input[type=radio]:checked::before{background-color:#f8bf11}.btn-skin-light:active,.btn-skin-light:focus,.btn-skin-light:hover,.btn-skin-light.inverted{color:#fad35b}input:not([type='submit']):not([type='button']):not([type='number']):not([type='checkbox']):not([type='radio']):focus,textarea:focus,.btn-skin-light,.btn-skin-light.inverted,.btn-skin-light:active,.btn-skin-light:focus,.btn-skin-light:hover,.btn-skin-light.inverted:active,.btn-skin-light.inverted:focus,.btn-skin-light.inverted:hover{border-color:#fad35b}.btn-skin-light,.btn-skin-light.inverted:active,.btn-skin-light.inverted:focus,.btn-skin-light.inverted:hover{background-color:#fad35b}.btn-skin-lightest:active,.btn-skin-lightest:focus,.btn-skin-lightest:hover,.btn-skin-lightest.inverted{color:#fbda74}.btn-skin-lightest,.btn-skin-lightest.inverted,.btn-skin-lightest:active,.btn-skin-lightest:focus,.btn-skin-lightest:hover,.btn-skin-lightest.inverted:active,.btn-skin-lightest.inverted:focus,.btn-skin-lightest.inverted:hover{border-color:#fbda74}.btn-skin-lightest,.btn-skin-lightest.inverted:active,.btn-skin-lightest.inverted:focus,.btn-skin-lightest.inverted:hover{background-color:#fbda74}.pagination,a:hover,a:focus,a:active,.btn-skin-dark:active,.btn-skin-dark:focus,.btn-skin-dark:hover,.btn-skin-dark.inverted,.btn-skin-dark-oh:active,.btn-skin-dark-oh:focus,.btn-skin-dark-oh:hover,.post-info a:not(.btn):hover,.grid-container__classic .post-type__icon .icn-format,[class*='grid-container__'] .hover .entry-title a,.widget-area a:not(.btn):hover,a.czr-format-link:hover,.format-link.hover a.czr-format-link,button[type=submit]:hover,button[type=submit]:active,button[type=submit]:focus,input[type=submit]:hover,input[type=submit]:active,input[type=submit]:focus,.tabs .nav-link:hover,.tabs .nav-link.active,.tabs .nav-link.active:hover,.tabs .nav-link.active:focus{color:#c69706}.grid-container__classic.tc-grid-border .grid__item,.btn-skin-dark,.btn-skin-dark.inverted,button[type=submit],input[type=submit],.btn-skin-dark:active,.btn-skin-dark:focus,.btn-skin-dark:hover,.btn-skin-dark.inverted:active,.btn-skin-dark.inverted:focus,.btn-skin-dark.inverted:hover,.btn-skin-h-dark:active,.btn-skin-h-dark:focus,.btn-skin-h-dark:hover,.btn-skin-h-dark.inverted,.btn-skin-h-dark.inverted,.btn-skin-h-dark.inverted,.btn-skin-dark-oh:active,.btn-skin-dark-oh:focus,.btn-skin-dark-oh:hover,.btn-skin-dark-oh.inverted:active,.btn-skin-dark-oh.inverted:focus,.btn-skin-dark-oh.inverted:hover,button[type=submit]:hover,button[type=submit]:active,button[type=submit]:focus,input[type=submit]:hover,input[type=submit]:active,input[type=submit]:focus{border-color:#c69706}.btn-skin-dark,.btn-skin-dark.inverted:active,.btn-skin-dark.inverted:focus,.btn-skin-dark.inverted:hover,.btn-skin-h-dark:active,.btn-skin-h-dark:focus,.btn-skin-h-dark:hover,.btn-skin-h-dark.inverted,.btn-skin-h-dark.inverted,.btn-skin-h-dark.inverted,.btn-skin-dark-oh.inverted:active,.btn-skin-dark-oh.inverted:focus,.btn-skin-dark-oh.inverted:hover,.grid-container__classic .post-type__icon:hover,button[type=submit],input[type=submit],.czr-link-hover-underline .widgets-list-layout-links a:not(.btn)::before,.czr-link-hover-underline .widget_archive a:not(.btn)::before,.czr-link-hover-underline .widget_nav_menu a:not(.btn)::before,.czr-link-hover-underline .widget_rss ul a:not(.btn)::before,.czr-link-hover-underline .widget_recent_entries a:not(.btn)::before,.czr-link-hover-underline .widget_categories a:not(.btn)::before,.czr-link-hover-underline .widget_meta a:not(.btn)::before,.czr-link-hover-underline .widget_recent_comments a:not(.btn)::before,.czr-link-hover-underline .widget_pages a:not(.btn)::before,.czr-link-hover-underline .widget_calendar a:not(.btn)::before,[class*='grid-container__'] .hover .entry-title a::after,a.czr-format-link::before,.comment-author a::before,.comment-link::before,.tabs .nav-link.active::before{background-color:#c69706}.btn-skin-dark-shaded:active,.btn-skin-dark-shaded:focus,.btn-skin-dark-shaded:hover,.btn-skin-dark-shaded.inverted{background-color:rgba(198,151,6,0.2)}.btn-skin-dark-shaded,.btn-skin-dark-shaded.inverted:active,.btn-skin-dark-shaded.inverted:focus,.btn-skin-dark-shaded.inverted:hover{background-color:rgba(198,151,6,0.8)}.navbar-brand,.header-tagline,h1,h2,h3,.tc-dropcap { font-family : 'Oswald';font-weight : 700; } body { font-family : 'Droid Serif';font-weight : 400; } #czr-push-footer { display: none; visibility: hidden; } .czr-sticky-footer #czr-push-footer.sticky-footer-enabled { display: block; } </style> <link rel='stylesheet' id='customizr-style-css' href='https://linuxstans.com/wp-content/themes/linuxstans/style.css?ver=4.4.24' media='all' /> <link rel='stylesheet' id='tablepress-default-css' href='https://linuxstans.com/wp-content/tablepress-combined.min.css?ver=25' media='all' /> <link rel='stylesheet' id='tablepress-responsive-tables-css' href='https://linuxstans.com/wp-content/plugins/tablepress-responsive-tables/css/tablepress-responsive.min.css?ver=1.8' media='all' /> <script id="nb-jquery" src="https://linuxstans.com/wp-includes/js/jquery/jquery.min.js?ver=3.7.1" id="jquery-core-js"></script> <script src="https://linuxstans.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1" id="jquery-migrate-js"></script> <script src="https://linuxstans.com/wp-content/plugins/coupon-reveal-button/js/spbcta-nm.js?ver=1.2.7" id="spbcta-nm-script-js"></script> <script src="https://linuxstans.com/wp-content/themes/customizr/assets/front/js/libs/modernizr.min.js?ver=4.4.24" id="modernizr-js"></script> <script src="https://linuxstans.com/wp-includes/js/underscore.min.js?ver=1.13.7" id="underscore-js"></script> <script id="tc-scripts-js-extra"> var CZRParams = {"assetsPath":"https:\/\/linuxstans.com\/wp-content\/themes\/customizr\/assets\/front\/","mainScriptUrl":"https:\/\/linuxstans.com\/wp-content\/themes\/customizr\/assets\/front\/js\/tc-scripts.min.js?4.4.24","deferFontAwesome":"1","fontAwesomeUrl":"https:\/\/linuxstans.com\/wp-content\/themes\/customizr\/assets\/shared\/fonts\/fa\/css\/fontawesome-all.min.css?4.4.24","_disabled":[],"centerSliderImg":"1","isLightBoxEnabled":"1","SmoothScroll":{"Enabled":false,"Options":{"touchpadSupport":false}},"isAnchorScrollEnabled":"","anchorSmoothScrollExclude":{"simple":["[class*=edd]",".carousel-control","[data-toggle=\"modal\"]","[data-toggle=\"dropdown\"]","[data-toggle=\"czr-dropdown\"]","[data-toggle=\"tooltip\"]","[data-toggle=\"popover\"]","[data-toggle=\"collapse\"]","[data-toggle=\"czr-collapse\"]","[data-toggle=\"tab\"]","[data-toggle=\"pill\"]","[data-toggle=\"czr-pill\"]","[class*=upme]","[class*=um-]"],"deep":{"classes":[],"ids":[]}},"timerOnScrollAllBrowsers":"1","centerAllImg":"1","HasComments":"1","LoadModernizr":"1","stickyHeader":"","extLinksStyle":"","extLinksTargetExt":"","extLinksSkipSelectors":{"classes":["btn","button"],"ids":[]},"dropcapEnabled":"","dropcapWhere":{"post":"","page":""},"dropcapMinWords":"","dropcapSkipSelectors":{"tags":["IMG","IFRAME","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","UL","OL"],"classes":["btn"],"id":[]},"imgSmartLoadEnabled":"","imgSmartLoadOpts":{"parentSelectors":["[class*=grid-container], .article-container",".__before_main_wrapper",".widget-front",".post-related-articles",".tc-singular-thumbnail-wrapper",".sek-module-inner"],"opts":{"excludeImg":[".tc-holder-img"]}},"imgSmartLoadsForSliders":"1","pluginCompats":[],"isWPMobile":"","menuStickyUserSettings":{"desktop":"no_stick","mobile":"stick_up"},"adminAjaxUrl":"https:\/\/linuxstans.com\/wp-admin\/admin-ajax.php","ajaxUrl":"https:\/\/linuxstans.com\/?czrajax=1","frontNonce":{"id":"CZRFrontNonce","handle":"025005f2b6"},"isDevMode":"","isModernStyle":"1","i18n":{"Permanently dismiss":"Permanently dismiss"},"frontNotifications":{"welcome":{"enabled":false,"content":"","dismissAction":"dismiss_welcome_note_front"}},"preloadGfonts":"1","googleFonts":"Oswald:700%7CDroid+Serif:400","version":"4.4.24"}; </script> <script src="https://linuxstans.com/wp-content/themes/customizr/assets/front/js/tc-scripts.min.js?ver=4.4.24" id="tc-scripts-js" defer></script> <!-- Google tag (gtag.js) snippet added by Site Kit --> <!-- Google Analytics snippet added by Site Kit --> <script src="https://www.googletagmanager.com/gtag/js?id=G-FZ7F5N0CJP" id="google_gtagjs-js" async></script> <script id="google_gtagjs-js-after"> window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);} gtag("set","linker",{"domains":["linuxstans.com"]}); gtag("js", new Date()); gtag("set", "developer_id.dZTNiMT", true); gtag("config", "G-FZ7F5N0CJP"); </script> <!-- End Google tag (gtag.js) snippet added by Site Kit --> <link rel="https://api.w.org/" href="https://linuxstans.com/wp-json/" /><link rel="alternate" title="JSON" type="application/json" href="https://linuxstans.com/wp-json/wp/v2/posts/1136" /><link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://linuxstans.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Flinuxstans.com%2Fhow-to-install-python-centos%2F" /> <link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://linuxstans.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Flinuxstans.com%2Fhow-to-install-python-centos%2F&format=xml" /> <meta name="generator" content="Site Kit by Google 1.147.0" /> <link rel="preload" as="font" type="font/woff2" href="https://linuxstans.com/wp-content/themes/customizr/assets/shared/fonts/customizr/customizr.woff2?128396981" crossorigin="anonymous"/> <style>.mc4wp-checkbox-wp-comment-form{clear:both;width:auto;display:block;position:static}.mc4wp-checkbox-wp-comment-form input{float:none;vertical-align:middle;-webkit-appearance:checkbox;width:auto;max-width:21px;margin:0 6px 0 0;padding:0;position:static;display:inline-block!important}.mc4wp-checkbox-wp-comment-form label{float:none;cursor:pointer;width:auto;margin:0 0 16px;display:block;position:static}</style> <!-- Google AdSense meta tags added by Site Kit --> <meta name="google-adsense-platform-account" content="ca-host-pub-2644536267352236"> <meta name="google-adsense-platform-domain" content="sitekit.withgoogle.com"> <!-- End Google AdSense meta tags added by Site Kit --> <style>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style><script async src="https://fundingchoicesmessages.google.com/i/pub-6581914980257652?ers=1" nonce="ypRIRGuRB9Z00Qr_wNVBxw"></script><script nonce="ypRIRGuRB9Z00Qr_wNVBxw">(function() {function signalGooglefcPresent() {if (!window.frames['googlefcPresent']) {if (document.body) {const iframe = document.createElement('iframe'); iframe.style = 'width: 0; height: 0; border: none; z-index: -1000; left: -1000px; top: -1000px;'; iframe.style.display = 'none'; iframe.name = 'googlefcPresent'; document.body.appendChild(iframe);} else {setTimeout(signalGooglefcPresent, 0);}}}signalGooglefcPresent();})();</script><link rel="amphtml" href="https://linuxstans.com/how-to-install-python-centos/?amp"> <!-- Google AdSense snippet added by Site Kit --> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6581914980257652&host=ca-host-pub-2644536267352236" crossorigin="anonymous"></script> <!-- End Google AdSense snippet added by Site Kit --> <link rel="icon" href="https://linuxstans.com/wp-content/uploads/2020/10/cropped-LinuxStansIcon512-32x32.png" sizes="32x32" /> <link rel="icon" href="https://linuxstans.com/wp-content/uploads/2020/10/cropped-LinuxStansIcon512-192x192.png" sizes="192x192" /> <link rel="apple-touch-icon" href="https://linuxstans.com/wp-content/uploads/2020/10/cropped-LinuxStansIcon512-180x180.png" /> <meta name="msapplication-TileImage" content="https://linuxstans.com/wp-content/uploads/2020/10/cropped-LinuxStansIcon512-270x270.png" /> <style id="wp-custom-css"> body blockquote::before { content: none!important;} @media (min-width: 576px){ blockquote>* { margin-left: 1.5em; padding-left: 1em;}} blockquote {border-left: 1em solid #c69706} code { background:#e9ebec} </style> </head> <body class="nb-3-3-7 nimble-no-local-data-skp__post_post_1136 nimble-no-group-site-tmpl-skp__all_post post-template-default single single-post postid-1136 single-format-standard wp-custom-logo wp-embed-responsive sek-hide-rc-badge czr-link-hover-underline header-skin-light footer-skin-dark czr-r-sidebar tc-center-images czr-full-layout customizr-4-4-24-with-child-theme czr-sticky-footer"> <script data-cfasync="false" data-no-defer="1" data-no-minify="1" data-no-optimize="1">if(typeof ewww_webp_supported==="undefined"){var ewww_webp_supported=!1}if(ewww_webp_supported){document.body.classList.add("webp-support")}</script> <a class="screen-reader-text skip-link" href="#content">Skip to content</a> <div id="tc-page-wrap" class=""> <header class="tpnav-header__header tc-header sl-logo_left czr-submenu-fade czr-submenu-move czr-highlight-contextual-menu-items" > <div class="topbar-navbar__wrapper d-none d-lg-block" > <div class="container-fluid"> <div class="row flex-row flex-lg-nowrap justify-content-start justify-content-lg-end align-items-center topbar-navbar__row"> <div class="topbar-nav__container col col-auto d-none d-lg-flex"> <nav id="topbar-nav" class="topbar-nav__nav"> <div class="nav__menu-wrapper topbar-nav__menu-wrapper czr-open-on-hover" > <ul id="topbar-menu" class="topbar-nav__menu regular-nav nav__menu nav"><li id="menu-item-58" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-58"><a href="https://linuxstans.com/about/" class="nav__link"><span class="nav__title">About</span></a></li> <li id="menu-item-2440" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2440"><a href="https://linuxstans.com/newsletter/" class="nav__link"><span class="nav__title">Newsletter</span></a></li> <li id="menu-item-57" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-57"><a href="https://linuxstans.com/write-for-us-submit-an-article/" class="nav__link"><span class="nav__title">Write for Us – Submit an Article</span></a></li> <li id="menu-item-56" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-56"><a href="https://linuxstans.com/contact-us/" class="nav__link"><span class="nav__title">Contact us</span></a></li> </ul></div> </nav> </div> <div class="topbar-nav__socials social-links col col-auto d-none d-lg-block"> <ul class="socials " > <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-facebook" title="Follow us on Facebook" aria-label="Follow us on Facebook" href="https://www.facebook.com/LinuxFan5/" target="_blank" ><i class="fab fa-facebook"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-youtube" title="Follow us on Youtube" aria-label="Follow us on Youtube" href="https://www.youtube.com/channel/UCf_tvHKC5e_zIFA-YH4PRTA" target="_blank" ><i class="fab fa-youtube"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-twitter" title="Follow us on Twitter" aria-label="Follow us on Twitter" href="https://twitter.com/StansLinux" target="_blank" ><i class="fab fa-twitter"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-mail" title="Follow us on Email" aria-label="Follow us on Email" href="https://linuxstans.com/newsletter/" target="_blank" ><i class="fas fa-envelope"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-feed" title="Subscribe to my rss feed" aria-label="Subscribe to my rss feed" href="https://linuxstans.com/feed/rss/" target="_blank" ><i class="fas fa-rss"></i></a></li></ul> </div> </div> </div> </div> <div class="primary-navbar__wrapper d-none d-lg-block has-horizontal-menu" > <div class="container-fluid"> <div class="row align-items-center flex-row primary-navbar__row"> <div class="branding__container col col-auto" > <div class="branding align-items-center flex-column "> <div class="branding-row d-flex flex-row align-items-center align-self-start"> <div class="navbar-brand col-auto " > <a class="navbar-brand-sitelogo" href="https://linuxstans.com/" aria-label="Linux Stans | Content by Linux Stans for Everyone" > <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="Back Home" width="250" height="100" style="max-width:250px;max-height:100px" data-src-img="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" data-src-webp="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png.webp" data-eio="j" class="ewww_webp"><noscript><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="Back Home" width="250" height="100" style="max-width:250px;max-height:100px" data-src-img="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" data-src-webp="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png.webp" data-eio="j" class="ewww_webp"><noscript><img src="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" alt="Back Home" class="" width="250" height="100" style="max-width:250px;max-height:100px"></noscript></noscript> </a> </div> </div> </div> </div> <div class="primary-nav__container justify-content-lg-around col col-lg-auto flex-lg-column" > <div class="primary-nav__wrapper flex-lg-row align-items-center justify-content-end"> <nav class="primary-nav__nav col" id="primary-nav"> <div class="nav__menu-wrapper primary-nav__menu-wrapper justify-content-end czr-open-on-hover" > <ul id="main-menu" class="primary-nav__menu regular-nav nav__menu nav"><li id="menu-item-52" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-52"><a href="https://linuxstans.com/category/comparisons/" class="nav__link"><span class="nav__title">Comparisons</span></a></li> <li id="menu-item-53" class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent current-active menu-item-53"><a href="https://linuxstans.com/category/tutorials/" class="nav__link"><span class="nav__title">Tutorials</span></a></li> <li id="menu-item-54" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-54"><a href="https://linuxstans.com/category/best-distros/" class="nav__link"><span class="nav__title">Best Distros</span></a></li> <li id="menu-item-221" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-221"><a href="https://linuxstans.com/category/software/" class="nav__link"><span class="nav__title">Software</span></a></li> <li id="menu-item-1392" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1392"><a href="https://linuxstans.com/category/hardware/" class="nav__link"><span class="nav__title">Hardware</span></a></li> <li id="menu-item-2880" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2880"><a href="https://linuxstans.com/category/resources/" class="nav__link"><span class="nav__title">Resources</span></a></li> </ul></div> </nav> <div class="primary-nav__utils nav__utils col-auto" > <ul class="nav utils flex-row flex-nowrap regular-nav"> <li class="nav__search " > <a href="#" class="search-toggle_btn icn-search czr-overlay-toggle_btn" aria-expanded="false"><span class="sr-only">Search</span></a> <div class="czr-search-expand"> <div class="czr-search-expand-inner"><div class="search-form__container " > <form action="https://linuxstans.com/" method="get" class="czr-form search-form"> <div class="form-group czr-focus"> <label for="s-67be045d07c42" id="lsearch-67be045d07c42"> <span class="screen-reader-text">Search</span> <input id="s-67be045d07c42" class="form-control czr-search-field" name="s" type="search" value="" aria-describedby="lsearch-67be045d07c42" placeholder="Search …"> </label> <button type="submit" class="button"><i class="icn-search"></i><span class="screen-reader-text">Search …</span></button> </div> </form> </div></div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="mobile-navbar__wrapper d-lg-none mobile-sticky" > <div class="branding__container justify-content-between align-items-center container-fluid" > <div class="branding flex-column"> <div class="branding-row d-flex align-self-start flex-row align-items-center"> <div class="navbar-brand col-auto " > <a class="navbar-brand-sitelogo" href="https://linuxstans.com/" aria-label="Linux Stans | Content by Linux Stans for Everyone" > <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="Back Home" width="250" height="100" style="max-width:250px;max-height:100px" data-src-img="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" data-src-webp="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png.webp" data-eio="j" class="ewww_webp"><noscript><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="Back Home" width="250" height="100" style="max-width:250px;max-height:100px" data-src-img="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" data-src-webp="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png.webp" data-eio="j" class="ewww_webp"><noscript><img src="https://linuxstans.com/wp-content/uploads/2020/10/cropped-logo-2.png" alt="Back Home" class="" width="250" height="100" style="max-width:250px;max-height:100px"></noscript></noscript> </a> </div> </div> </div> <div class="mobile-utils__wrapper nav__utils regular-nav"> <ul class="nav utils row flex-row flex-nowrap"> <li class="nav__search " > <a href="#" class="search-toggle_btn icn-search czr-dropdown" data-aria-haspopup="true" aria-expanded="false"><span class="sr-only">Search</span></a> <div class="czr-search-expand"> <div class="czr-search-expand-inner"><div class="search-form__container " > <form action="https://linuxstans.com/" method="get" class="czr-form search-form"> <div class="form-group czr-focus"> <label for="s-67be045d0800b" id="lsearch-67be045d0800b"> <span class="screen-reader-text">Search</span> <input id="s-67be045d0800b" class="form-control czr-search-field" name="s" type="search" value="" aria-describedby="lsearch-67be045d0800b" placeholder="Search …"> </label> <button type="submit" class="button"><i class="icn-search"></i><span class="screen-reader-text">Search …</span></button> </div> </form> </div></div> </div> <ul class="dropdown-menu czr-dropdown-menu"> <li class="header-search__container container-fluid"> <div class="search-form__container " > <form action="https://linuxstans.com/" method="get" class="czr-form search-form"> <div class="form-group czr-focus"> <label for="s-67be045d08100" id="lsearch-67be045d08100"> <span class="screen-reader-text">Search</span> <input id="s-67be045d08100" class="form-control czr-search-field" name="s" type="search" value="" aria-describedby="lsearch-67be045d08100" placeholder="Search …"> </label> <button type="submit" class="button"><i class="icn-search"></i><span class="screen-reader-text">Search …</span></button> </div> </form> </div></li> </ul> </li> <li class="hamburger-toggler__container " > <button class="ham-toggler-menu czr-collapsed" data-toggle="czr-collapse" data-target="#mobile-nav"><span class="ham__toggler-span-wrapper"><span class="line line-1"></span><span class="line line-2"></span><span class="line line-3"></span></span><span class="screen-reader-text">Menu</span></button> </li> </ul> </div> </div> <div class="mobile-nav__container " > <nav class="mobile-nav__nav flex-column czr-collapse" id="mobile-nav"> <div class="mobile-nav__inner container-fluid"> <div class="nav__menu-wrapper mobile-nav__menu-wrapper czr-open-on-click" > <ul id="mobile-nav-menu" class="mobile-nav__menu vertical-nav nav__menu flex-column nav"><li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-52"><a href="https://linuxstans.com/category/comparisons/" class="nav__link"><span class="nav__title">Comparisons</span></a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent current-active menu-item-53"><a href="https://linuxstans.com/category/tutorials/" class="nav__link"><span class="nav__title">Tutorials</span></a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-54"><a href="https://linuxstans.com/category/best-distros/" class="nav__link"><span class="nav__title">Best Distros</span></a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-221"><a href="https://linuxstans.com/category/software/" class="nav__link"><span class="nav__title">Software</span></a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-1392"><a href="https://linuxstans.com/category/hardware/" class="nav__link"><span class="nav__title">Hardware</span></a></li> <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2880"><a href="https://linuxstans.com/category/resources/" class="nav__link"><span class="nav__title">Resources</span></a></li> </ul></div> </div> </nav> </div></div></header> <div id="main-wrapper" class="section"> <div class="czr-hot-crumble container page-breadcrumbs" role="navigation" > <div class="row"> <nav class="breadcrumbs col-12"><span class="trail-begin"><a href="https://linuxstans.com" title="Linux Stans" rel="home" class="trail-begin">Home</a></span> <span class="sep">»</span> <a href="https://linuxstans.com/category/tutorials/" title="Tutorials">Tutorials</a> <span class="sep">»</span> <span class="trail-end">How to Install Python 3.10 (or 3.11) on CentOS</span></nav> </div> </div> <div class="container" role="main"> <div class="flex-row row column-content-wrapper"> <div id="content" class="col-12 col-md-9 article-container"> <article id="post-1136" class="post-1136 post type-post status-publish format-standard has-post-thumbnail category-tutorials tag-python czr-hentry" > <header class="entry-header " > <div class="entry-header-inner"> <div class="tax__container post-info entry-meta"> <a class="tax__link" href="https://linuxstans.com/category/tutorials/" title="View all posts in Tutorials"> <span>Tutorials</span> </a> </div> <h1 class="entry-title">How to Install Python 3.10 (or 3.11) on CentOS</h1> <div class="header-bottom"> <div class="post-info"> <span class="entry-meta"> <span class="author-meta">by <span class="author vcard"><span class="author_name"><a class="url fn n" href="https://linuxstans.com/author/linuxstans/" title="View all posts by Linux Stans" rel="author">Linux Stans</a></span></span></span><span class="v-separator">|</span>Updated <a href="https://linuxstans.com/2022/01/24/" title="3:21 pm" rel="bookmark"><time class="entry-date updated" datetime="January 24, 2022">January 24, 2022</time></a></span> </div> </div> </div> </header> <div class="post-entry tc-content-inner"> <section class="post-content entry-content " > <div class="czr-wp-the-content"> <p>In this tutorial, we’re going to show you how to install Python (the latest version) on CentOS with step-by-step instructions. This tutorial includes instructions for Python 3.10 and Python 3.11 on CentOS 7 and CentOS 8.</p> <p><span id="more-1136"></span></p> <blockquote><p><strong>Alternative tutorial: <a href="https://linuxstans.com/how-to-install-python-ubuntu/">How to install Python on Ubuntu</a>.</strong></p></blockquote> <h2>Prerequisites</h2> <p>This is what you’ll need for this tutorial:</p> <ul> <li>Root access or a user with sudo privileges</li> <li>SSH access to the server, or just use Terminal if you’re on a desktop</li> <li>A CentOS system. This tutorial will work for CentOS 7, CentOS 8, AlmaLinux, Rocky Linux, and other RHEL-based distros.</li> <li>If you need a server, you can get one from <a href="https://linuxstans.com/goto/linode/">Linode</a>, or choose another <a href="https://linuxstans.com/best-linux-vps-hosting/">Linux VPS provider</a>.</li> </ul> <p>On some systems, Python may already be installed. To check what version of Python you have installed (if any), run the following commands:</p> <pre>python -V</pre> <pre>python3 -V</pre> <p>If Python is installed, one or both commands will give you an output of the version that’s installed.</p> <blockquote><p><strong>Recommended read: <a href="https://linuxstans.com/best-linux-distro-for-programming/">Best Linux Distro for Programming</a></strong></p></blockquote> <h2>Default Versions of Python in CentOS</h2> <p>Depending on when you’re reading this or what version you’re using, the version that you have installed by default or the version that’s available in the CentOS repo might be different.</p> <p><strong>For CentOS 7:</strong></p> <ul> <li>Python 2.7.5 is installed by default. That version has reached its EOL years ago, so you should upgrade ASAP.</li> <li>Python 3.6.8 is the latest version available in the CentOS 7 repos. 3.6 reached its EOL in Dec 2021, so you should upgrade ASAP.</li> </ul> <p><strong>For CentOS 8:</strong></p> <ul> <li>Python isn’t installed by default.</li> <li>Python 3.9.6 is the latest version available in the CentOS 8 repos. The EOL of Python 3.9.6 is Oct 2025, so you can use that version. To install it, just run <code>yum install python39</code> and that’s it. If you want to install Python 3.10 or 3.11, follow the tutorial below.</li> </ul> <h2>How to Install Python 3.10 on CentOS</h2> <p>Now, onto our tutorial on how to install Python 3.10 on CentOS (any version)</p> <h3>Step 1: Update CentOS</h3> <p>The first step, as always, is to update your system with the following command:</p> <pre>yum update</pre> <h3>Step 2: Install necessary packages</h3> <p>Next, we need to install some packages:</p> <pre>yum install openssl-devel bzip2-devel libffi-devel</pre> <pre>yum groupinstall "Development Tools"</pre> <h3>Step 3: Download Python</h3> <p>First, get the download link for the version of Python that you plan on installing from <a href="https://www.python.org/downloads/source/">this page</a>. In this tutorial, we’ll be using Python 3.10.2.</p> <p>Download the file with the command below:</p> <pre>wget https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgz</pre> <p>And extract the archive with:</p> <pre>tar -xzf Python-3.10.2.tgz</pre> <h3>Step 4: Install Python 3.10</h3> <p>To install the Python version you just downloaded, cd into the directory:</p> <pre>cd Python-3.10.2</pre> <p>Then, run the following command:</p> <pre>./configure --enable-optimizations</pre> <p>And finally, compile Python (without replacing the default version):</p> <pre>make altinstall</pre> <p>This process might take a while. After it’s done, you can verify if you installed Python 3.10.2 with the following command:</p> <pre>python3.10 -V</pre> <p>Which should return the exact version of Python (3.10.2)</p> <h2>How to Install Python 3.11 on CentOS</h2> <p>The instructions are pretty similar to 3.10.</p> <h3>Step 1: Update CentOS</h3> <p>The first step, as always, is to update your system with the following command:</p> <pre>yum update</pre> <h3>Step 2: Install necessary packages</h3> <p>Next, we need to install some packages:</p> <pre>yum install openssl-devel bzip2-devel libffi-devel</pre> <pre>yum groupinstall "Development Tools"</pre> <h3>Step 3: Download Python</h3> <p>First, get the download link for the version of Python that you plan on installing from <a href="https://www.python.org/downloads/source/">this page</a>. In this tutorial, we’ll be using Python 3.11.0a4</p> <p>Download the file with the command below:</p> <pre>wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0a4.tgz</pre> <p>And extract the archive with:</p> <pre>tar -xzf Python-3.11.0a4.tgz</pre> <h3>Step 4: Install Python 3.11</h3> <p>To install the Python version you just downloaded, cd into the directory:</p> <pre>cd Python-3.11.0a4</pre> <p>Then, run the following command:</p> <pre>./configure --enable-optimizations</pre> <p>And finally, compile Python (without replacing the default version):</p> <pre>make altinstall</pre> <p>This process might take a while. After it’s done, you can verify if you installed Python 3.11.0a4 with the following command:</p> <pre>python3.11 -V</pre> <p>Which should return the exact version of Python (3.11.0a4).</p> <p>And that’s it. You’ve now installed the latest version of Python on CentOS.</p> </div> <footer class="post-footer clearfix"> <div class="row entry-meta justify-content-between align-items-center"> <div class="post-tags col-xs-12 col-sm-auto col-sm"> <ul class="tags"> <li><a class="tag__link btn btn-skin-dark-oh inverted" href="https://linuxstans.com/tag/python/" title="View all posts in python"> <span>python</span> </a></li> </ul> </div> </div> </footer> </section><!-- .entry-content --> </div><!-- .post-entry --> </article><section class="post-author " > <div class="post-author__wrapper"> <h4 class="post-author-title">AUTHOR</h4> <figure class="author-info"> <span class="author-avatar"><img alt='' src='https://secure.gravatar.com/avatar/f9a90d6cf2bb066dadabae4ffc4a4766?s=120&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/f9a90d6cf2bb066dadabae4ffc4a4766?s=240&d=retro&r=g 2x' class='avatar avatar-120 photo' height='120' width='120' loading='lazy' decoding='async'/></span> <figcaption> <h5 class="post-author-name author_name">Linux Stans</h5> <div class="post-author-description">The official Linux Stans account.</div> <a href="https://linuxstans.com/author/linuxstans/" rel="author" class="action-link" title="View all the posts of the author"> 96 posts </a> <!-- fake need to have social links somewhere --> </figcaption> </figure> </div> </section><section class="post-related-articles czr-carousel " id="related-posts-section" > <header class="row flex-row"> <h3 class="related-posts_title col">You may also like</h3> <div class="related-posts_nav col col-auto"> <span class="btn btn-skin-dark inverted czr-carousel-prev slider-control czr-carousel-control disabled icn-left-open-big" title="Previous related articles" tabindex="0"></span> <span class="btn btn-skin-dark inverted czr-carousel-next slider-control czr-carousel-control icn-right-open-big" title="Next related articles" tabindex="0"></span> </div> </header> <div class="row grid-container__square-mini carousel-inner"> <article id="post-1497_related_posts" class="col-6 grid-item czr-related-post post-1497 post type-post status-publish format-standard has-post-thumbnail category-tutorials tag-pip tag-python czr-hentry" > <div class="grid__item flex-wrap flex-lg-nowrap flex-row"> <section class="tc-thumbnail entry-media__holder col-12 col-lg-6 czr__r-w1by1" > <div class="entry-media__wrapper czr__r-i js-centering"> <a class="bg-link" rel="bookmark" href="https://linuxstans.com/install-pip-centos/"></a> <img width="510" height="510" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image ewww_webp" alt="How to Install Pip on CentOS" decoding="async" loading="lazy" srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== 1w" sizes="auto, (max-width: 510px) 100vw, 510px" data-src-img="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg" data-src-webp="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg.webp" data-srcset-webp="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg.webp 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-150x150.jpg.webp 150w" data-srcset-img="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-150x150.jpg 150w" data-eio="j" /><noscript><img width="510" height="510" src="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image" alt="How to Install Pip on CentOS" decoding="async" loading="lazy" srcset="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-510x510.jpg 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos-150x150.jpg 150w" sizes="auto, (max-width: 510px) 100vw, 510px" /></noscript><div class="post-action btn btn-skin-dark-shaded inverted"><a href="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-centos.jpg" class="expand-img icn-expand"></a></div> </div> </section> <section class="tc-content entry-content__holder col-12 col-lg-6 czr__r-w1by1"> <div class="entry-content__wrapper"> <header class="entry-header " > <div class="entry-header-inner "> <h2 class="entry-title "> <a class="czr-title" href="https://linuxstans.com/install-pip-centos/" rel="bookmark">How to Install Pip on CentOS</a> </h2> </div> </header><div class="tc-content-inner entry-summary" > <div class="czr-wp-the-content"> <p>In this tutorial, we’re going to show you how to install Pip (Python) on CentOS. This tutorial will work for CentOS 7, […]</p> </div> </div> </div> </section> </div> </article><article id="post-1130_related_posts" class="col-6 grid-item czr-related-post post-1130 post type-post status-publish format-standard has-post-thumbnail category-tutorials tag-python czr-hentry" > <div class="grid__item flex-wrap flex-lg-nowrap flex-row"> <section class="tc-thumbnail entry-media__holder col-12 col-lg-6 czr__r-w1by1" > <div class="entry-media__wrapper czr__r-i js-centering"> <a class="bg-link" rel="bookmark" href="https://linuxstans.com/how-to-install-python-ubuntu/"></a> <img width="510" height="510" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image ewww_webp" alt="How to Install Python on Ubuntu" decoding="async" loading="lazy" srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== 1w" sizes="auto, (max-width: 510px) 100vw, 510px" data-src-img="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg" data-src-webp="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg.webp" data-srcset-webp="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg.webp 510w, https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-150x150.jpeg.webp 150w" data-srcset-img="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg 510w, https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-150x150.jpeg 150w" data-eio="j" /><noscript><img width="510" height="510" src="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image" alt="How to Install Python on Ubuntu" decoding="async" loading="lazy" srcset="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-510x510.jpeg 510w, https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu-150x150.jpeg 150w" sizes="auto, (max-width: 510px) 100vw, 510px" /></noscript><div class="post-action btn btn-skin-dark-shaded inverted"><a href="https://linuxstans.com/wp-content/uploads/2022/01/how-to-install-python-ubuntu.jpeg" class="expand-img icn-expand"></a></div> </div> </section> <section class="tc-content entry-content__holder col-12 col-lg-6 czr__r-w1by1"> <div class="entry-content__wrapper"> <header class="entry-header " > <div class="entry-header-inner "> <h2 class="entry-title "> <a class="czr-title" href="https://linuxstans.com/how-to-install-python-ubuntu/" rel="bookmark">How to Install Python on Ubuntu</a> </h2> </div> </header><div class="tc-content-inner entry-summary" > <div class="czr-wp-the-content"> <p>In this tutorial, we’re going to show you how to install the latest version of Python on Ubuntu. Step-by-step, beginner-friendly instructions.</p> </div> </div> </div> </section> </div> </article><article id="post-1480_related_posts" class="col-6 grid-item czr-related-post post-1480 post type-post status-publish format-standard has-post-thumbnail category-tutorials tag-pip tag-python tag-ubuntu czr-hentry" > <div class="grid__item flex-wrap flex-lg-nowrap flex-row"> <section class="tc-thumbnail entry-media__holder col-12 col-lg-6 czr__r-w1by1" > <div class="entry-media__wrapper czr__r-i js-centering"> <a class="bg-link" rel="bookmark" href="https://linuxstans.com/install-pip-ubuntu/"></a> <img width="510" height="510" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image ewww_webp" alt="How to Install Pip on Ubuntu" decoding="async" loading="lazy" srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== 1w" sizes="auto, (max-width: 510px) 100vw, 510px" data-src-img="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg" data-src-webp="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg.webp" data-srcset-webp="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg.webp 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-150x150.jpeg.webp 150w" data-srcset-img="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-150x150.jpeg 150w" data-eio="j" /><noscript><img width="510" height="510" src="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg" class="attachment-tc-sq-thumb tc-thumb-type-thumb czr-img no-lazy wp-post-image" alt="How to Install Pip on Ubuntu" decoding="async" loading="lazy" srcset="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-510x510.jpeg 510w, https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu-150x150.jpeg 150w" sizes="auto, (max-width: 510px) 100vw, 510px" /></noscript><div class="post-action btn btn-skin-dark-shaded inverted"><a href="https://linuxstans.com/wp-content/uploads/2022/07/install-pip-ubuntu.jpeg" class="expand-img icn-expand"></a></div> </div> </section> <section class="tc-content entry-content__holder col-12 col-lg-6 czr__r-w1by1"> <div class="entry-content__wrapper"> <header class="entry-header " > <div class="entry-header-inner "> <h2 class="entry-title "> <a class="czr-title" href="https://linuxstans.com/install-pip-ubuntu/" rel="bookmark">How to Install Pip on Ubuntu</a> </h2> </div> </header><div class="tc-content-inner entry-summary" > <div class="czr-wp-the-content"> <p>In this tutorial, we’re going to show you how to install and use Pip (Python) on Ubuntu. This tutorial works for Ubuntu […]</p> </div> </div> </div> </section> </div> </article> </div> </section> <div id="czr-comments" class="comments-area " > <div id="comments" class="comments_container comments czr-comments-block"> <section class="post-comments"> <div id="respond" class="comment-respond"> <h4 id="reply-title" class="comment-reply-title">Leave a comment <small><a rel="nofollow" id="cancel-comment-reply-link" href="/how-to-install-python-centos/#respond" style="display:none;">Cancel reply</a></small></h4><form action="https://linuxstans.com/wp-comments-post.php" method="post" id="commentform" class="czr-form comment-form" novalidate><p class="comment-notes"><span id="email-notes">Your email address will not be published.</span> <span class="required-field-message">Required fields are marked <span class="required">*</span></span></p><p class="comment-form-comment"><label for="comment">Comment <span class="required">*</span></label> <textarea autocomplete="new-password" id="a724fdcae4" name="a724fdcae4" cols="45" rows="8" maxlength="65525" required></textarea><textarea id="comment" aria-label="hp-comment" aria-hidden="true" name="comment" autocomplete="new-password" style="padding:0 !important;clip:rect(1px, 1px, 1px, 1px) !important;position:absolute !important;white-space:nowrap !important;height:1px !important;width:1px !important;overflow:hidden !important;" tabindex="-1"></textarea><script data-noptimize>document.getElementById("comment").setAttribute( "id", "a0c810b500a972c2f120778d37f9faae" );document.getElementById("a724fdcae4").setAttribute( "id", "comment" );</script></p><p class="comment-form-author"><label for="author">Name <span class="required">*</span></label> <input id="author" name="author" type="text" value="" size="30" maxlength="245" autocomplete="name" required /></p> <p class="comment-form-email"><label for="email">Email <span class="required">*</span></label> <input id="email" name="email" type="email" value="" size="30" maxlength="100" aria-describedby="email-notes" autocomplete="email" required /></p> <p class="comment-form-url"><label for="url">Website</label> <input id="url" name="url" type="url" value="" size="30" maxlength="200" autocomplete="url" /></p> <p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes" /> <label for="wp-comment-cookies-consent">Save my name, email, and website in this browser for the next time I comment.</label></p> <!-- Mailchimp for WordPress v4.10.1 - https://www.mc4wp.com/ --><input type="hidden" name="_mc4wp_subscribe_wp-comment-form" value="0" /><p class="mc4wp-checkbox mc4wp-checkbox-wp-comment-form "><label><input type="checkbox" name="_mc4wp_subscribe_wp-comment-form" value="1" ><span>Sign me up for the newsletter!</span></label></p><!-- / Mailchimp for WordPress --><p class="form-submit"><input name="submit" type="submit" id="submit" class="submit" value="Post Comment" /> <input type='hidden' name='comment_post_ID' value='1136' id='comment_post_ID' /> <input type='hidden' name='comment_parent' id='comment_parent' value='0' /> </p></form> </div><!-- #respond --> <h2 id="czr-comments-title" class="comments-title" >18 thoughts on “</span>How to Install Python 3.10 (or 3.11) on CentOS</span>”</h2> <ul class="nav nav-pills tabs"> <!-- WITH COMMENTS PAGINATION THE COMMENT/PINGBACK COUNT IS WRONG AS IS COUNTS JUST THE NUMBER OF ELEMENTS OF THE CURRENT (PAEG) QUERY --> <li class="nav-item"><a href="#commentlist-container" class="nav-link active" data-toggle="czr-pill" role="tab">18 comments</a></li> </ul> <div id="comments" class="tab-content"> <div id="commentlist-container" class="tab-pane comments active" role="tabpanel"> <ul class="comment-list"> <li class="comment even thread-even depth-1" id="comment-1776" > <div id ="div-comment-1776" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Alex </div> <time class="comment-date comment-metadata" datetime="1:00 pm"> <span>March 17, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-1776">1:00 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>How would I go about uninstalling 3.10, especially if done with altinstall? I was going through the makefile and i don’t think this was in it</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=1776#respond" data-commentid="1776" data-postid="1136" data-belowelement="div-comment-1776" data-respondelement="respond" data-replyto="Reply to Alex" aria-label="Reply to Alex">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-1777" > <div id ="div-comment-1777" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Alex </div> <time class="comment-date comment-metadata" datetime="1:14 pm"> <span>March 17, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-1777">1:14 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>If I decide to make python 3.10 my default python after doing make altinstall how would I go about it?</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=1777#respond" data-commentid="1777" data-postid="1136" data-belowelement="div-comment-1777" data-respondelement="respond" data-replyto="Reply to Alex" aria-label="Reply to Alex">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-1778" > <div id ="div-comment-1778" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/c057b0f4a84741f22ccaa927514a6405?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Alex </div> <time class="comment-date comment-metadata" datetime="1:16 pm"> <span>March 17, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-1778">1:16 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Also when looking through the makefile, I didn’t get to see anything for uninstall. How would I go about uninstalling 3.10 after make altinstall?</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=1778#respond" data-commentid="1778" data-postid="1136" data-belowelement="div-comment-1778" data-respondelement="respond" data-replyto="Reply to Alex" aria-label="Reply to Alex">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-2028" > <div id ="div-comment-2028" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/324efc1b22cab176052fe3f348026363?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/324efc1b22cab176052fe3f348026363?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Joe </div> <time class="comment-date comment-metadata" datetime="9:44 pm"> <span>May 26, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2028">9:44 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>pip does not work following the instructions above.<br /> When I issue the command ‘pip3 install websockets’<br /> I get this error:<br /> Could not fetch URL <a href="https://pypi.org/simple/websockets/" rel="nofollow ugc">https://pypi.org/simple/websockets/</a>: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/websockets/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) – skipping</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2028#respond" data-commentid="2028" data-postid="1136" data-belowelement="div-comment-2028" data-respondelement="respond" data-replyto="Reply to Joe" aria-label="Reply to Joe">Reply</a> </div> </div><ul class="children"> <li class="comment even depth-2" id="comment-2076" > <div id ="div-comment-2076" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/802f2adce8c0a675f3771b6f950b14ab?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/802f2adce8c0a675f3771b6f950b14ab?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Viriathe </div> <time class="comment-date comment-metadata" datetime="4:23 pm"> <span>June 6, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2076">4:23 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Got the same issue</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2076#respond" data-commentid="2076" data-postid="1136" data-belowelement="div-comment-2076" data-respondelement="respond" data-replyto="Reply to Viriathe" aria-label="Reply to Viriathe">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment odd alt depth-2" id="comment-2346" > <div id ="div-comment-2346" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/f38e2be756ee9b6210c11f4fd3aed0a0?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/f38e2be756ee9b6210c11f4fd3aed0a0?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Pradeep </div> <time class="comment-date comment-metadata" datetime="5:13 pm"> <span>June 30, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2346">5:13 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>mee too have the same issue.. Did anyone resolve it?</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2346#respond" data-commentid="2346" data-postid="1136" data-belowelement="div-comment-2346" data-respondelement="respond" data-replyto="Reply to Pradeep" aria-label="Reply to Pradeep">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment byuser comment-author-linuxstans bypostauthor even depth-2" id="comment-2363" > <div id ="div-comment-2363" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/f9a90d6cf2bb066dadabae4ffc4a4766?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/f9a90d6cf2bb066dadabae4ffc4a4766?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> <a href="https://linuxstans.com" class="url" rel="ugc">Linux Stans</a> <span class="small">Post author</span> </div> <time class="comment-date comment-metadata" datetime="6:35 am"> <span>July 2, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2363">6:35 am</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>I tried running the exact steps from the tutorial again and installed pip3 and websockets. It all worked fine:</p> <pre> 9 yum install epel-release 10 yum install python3-pip 11 pip3 install websockets 12 history </pre> <p>Can you double-check if you’ve installed “openssl-devel”?</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2363#respond" data-commentid="2363" data-postid="1136" data-belowelement="div-comment-2363" data-respondelement="respond" data-replyto="Reply to Linux Stans" aria-label="Reply to Linux Stans">Reply</a> </div> </div></li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-even depth-1" id="comment-2815" > <div id ="div-comment-2815" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/2986bf63ab3836a8306b16908f4380cf?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/2986bf63ab3836a8306b16908f4380cf?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Mark Rogers </div> <time class="comment-date comment-metadata" datetime="2:56 pm"> <span>August 1, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2815">2:56 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>This does not work, at least not on CentOS 7. If you perform the steps advised, it will appear to install, but all you need to do is run “pip install –upgrade pip” and you’ll get errors that OpenSSL is not installed. This is the issue I was trying to resolve when I found this page. These instructions are incomplete.</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2815#respond" data-commentid="2815" data-postid="1136" data-belowelement="div-comment-2815" data-respondelement="respond" data-replyto="Reply to Mark Rogers" aria-label="Reply to Mark Rogers">Reply</a> </div> </div><ul class="children"> <li class="comment even depth-2" id="comment-2816" > <div id ="div-comment-2816" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/2986bf63ab3836a8306b16908f4380cf?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/2986bf63ab3836a8306b16908f4380cf?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Mark Rogers </div> <time class="comment-date comment-metadata" datetime="3:08 pm"> <span>August 1, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-2816">3:08 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>I should have mentioned: thanks to the earlier poster for suggesting python3-pip. Using pip version 3.6 might do the trick for us, but it doesn’t address the main issue of getting pip 3.10 to work (we’re trying 3.10.4 and 3.10.5).</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=2816#respond" data-commentid="2816" data-postid="1136" data-belowelement="div-comment-2816" data-respondelement="respond" data-replyto="Reply to Mark Rogers" aria-label="Reply to Mark Rogers">Reply</a> </div> </div></li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-4047" > <div id ="div-comment-4047" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/a02c7f86b7191ccdae076777ae3cd21e?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/a02c7f86b7191ccdae076777ae3cd21e?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Adam </div> <time class="comment-date comment-metadata" datetime="10:33 pm"> <span>October 19, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-4047">10:33 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>My Error:<br /> ———————————————————-<br /> WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.</p> <p>WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/pip/</p> <p>What fixed my issue:<br /> ———————————————————-<br /> sudo yum install openssl11 openssl11-devel<br /> mkdir /usr/local/openssl11<br /> cd /usr/local/openssl11<br /> ln -s /usr/lib64/openssl11 lib<br /> ln -s /usr/include/openssl11 include</p> <p>Then proceed with the original steps in this guide, changing the “./configure –enable-optimizations” to point to the new OpenSSL:<br /> ./configure –with-openssl=/usr/local/openssl11 </p> <p>Hope this works for someone out there struggling! I’m running CentOS 7.9.2009 – Core and was doing the Python3.10 install (3.10.2)</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=4047#respond" data-commentid="4047" data-postid="1136" data-belowelement="div-comment-4047" data-respondelement="respond" data-replyto="Reply to Adam" aria-label="Reply to Adam">Reply</a> </div> </div><ul class="children"> <li class="comment even depth-2" id="comment-4338" > <div id ="div-comment-4338" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/9ae38a35d6a197a947749a818d0777b7?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/9ae38a35d6a197a947749a818d0777b7?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> <a href="http://divining.app" class="url" rel="ugc external nofollow">Marc</a> </div> <time class="comment-date comment-metadata" datetime="4:55 pm"> <span>November 2, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-4338">4:55 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>OOOOOH MY GOD! </p> <p>After 3 hours and over a dozen “right answers” across stack overflow and here, you finally gave me the one that works on Centos 7 and python 3.10 (and openssl, which WAS installed by the system but python cannot see it. This is a major design bug in python itself, the sort that can turn good folks away from python)</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=4338#respond" data-commentid="4338" data-postid="1136" data-belowelement="div-comment-4338" data-respondelement="respond" data-replyto="Reply to Marc" aria-label="Reply to Marc">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment odd alt depth-2" id="comment-4577" > <div id ="div-comment-4577" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/cbffe9b63aae2faf2dc5902b2bc59cc0?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/cbffe9b63aae2faf2dc5902b2bc59cc0?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Breno </div> <time class="comment-date comment-metadata" datetime="3:53 pm"> <span>December 2, 2022,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-4577">3:53 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Works like a charm.<br /> Thanks man!</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=4577#respond" data-commentid="4577" data-postid="1136" data-belowelement="div-comment-4577" data-respondelement="respond" data-replyto="Reply to Breno" aria-label="Reply to Breno">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment even depth-2" id="comment-4837" > <div id ="div-comment-4837" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/7b823753818aa4dd1749a160316c2874?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/7b823753818aa4dd1749a160316c2874?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Patrick McTiernan </div> <time class="comment-date comment-metadata" datetime="1:07 am"> <span>January 4, 2023,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-4837">1:07 am</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Excellent suggestion. I was installing 3.11.1 on CentOS 7.8.2003.<br /> Seems to make the build work with OpenSSL support.</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=4837#respond" data-commentid="4837" data-postid="1136" data-belowelement="div-comment-4837" data-respondelement="respond" data-replyto="Reply to Patrick McTiernan" aria-label="Reply to Patrick McTiernan">Reply</a> </div> </div><ul class="children"> <li class="comment odd alt depth-3" id="comment-7553" > <div id ="div-comment-7553" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/759a0257338338f2c7f2560abf4ca4d4?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/759a0257338338f2c7f2560abf4ca4d4?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> karan </div> <time class="comment-date comment-metadata" datetime="12:57 pm"> <span>October 16, 2023,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-7553">12:57 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Can you share the detailed process how you got this to work</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=7553#respond" data-commentid="7553" data-postid="1136" data-belowelement="div-comment-7553" data-respondelement="respond" data-replyto="Reply to karan" aria-label="Reply to karan">Reply</a> </div> </div><ul class="children"> <li class="comment even depth-4" id="comment-8808" > <div id ="div-comment-8808" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/d1471c693565a05bcb73ac7e436b6c95?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/d1471c693565a05bcb73ac7e436b6c95?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> A </div> <time class="comment-date comment-metadata" datetime="9:01 pm"> <span>January 10, 2024,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-8808">9:01 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>install the pre-reqs as above and then</p> <p>(as root)<br /> yum install openssl11 openssl11-devel -y<br /> mkdir /usr/local/openssl11<br /> cd /usr/local/openssl11<br /> ln -s /usr/lib64/openssl11 lib<br /> ln -s /usr/include/openssl11 include<br /> cd /usr/src<br /> wget <a href="https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz" rel="nofollow ugc">https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tgz</a><br /> tar xvf Python-3.10.13.tgz<br /> cd Python-3.10.13<br /> ./configure –enable-optimizations –with-openssl=/usr/local/openssl11<br /> make altinstall</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=8808#respond" data-commentid="8808" data-postid="1136" data-belowelement="div-comment-8808" data-respondelement="respond" data-replyto="Reply to A" aria-label="Reply to A">Reply</a> </div> </div></li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment odd alt depth-2" id="comment-5526" > <div id ="div-comment-5526" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/a15531dc1f7be38227213ecbceabc023?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/a15531dc1f7be38227213ecbceabc023?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> <a href="http://growsundews.com" class="url" rel="ugc external nofollow">Aaron</a> </div> <time class="comment-date comment-metadata" datetime="1:00 am"> <span>March 11, 2023,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-5526">1:00 am</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Thank you for this comment. Worked perfectly after trying many other non-viable options.</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=5526#respond" data-commentid="5526" data-postid="1136" data-belowelement="div-comment-5526" data-respondelement="respond" data-replyto="Reply to Aaron" aria-label="Reply to Aaron">Reply</a> </div> </div></li><!-- #comment-## --> </ul><!-- .children --> </li><!-- #comment-## --> <li class="comment even thread-even depth-1" id="comment-5640" > <div id ="div-comment-5640" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/0f54da36ea016b517802fe28b899b91a?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/0f54da36ea016b517802fe28b899b91a?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> John Lovell </div> <time class="comment-date comment-metadata" datetime="10:06 pm"> <span>March 20, 2023,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-5640">10:06 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Hi, this fails for me during make with “ModuleNotFoundError: No module named ‘encodings'”. The error is triggered by _bootstrap_python. I’ve tried building inside a virtual environment and outside. My environment is </p> <p> PYTHONHOME = (not set)<br /> PYTHONPATH = (not set)<br /> program name = ‘./_bootstrap_python’<br /> isolated = 0<br /> environment = 0<br /> user site = 0<br /> import site = 1<br /> is in build tree = 0<br /> stdlib dir = ‘/usr/local/lib/python3.11’<br /> sys._base_executable = ‘/bin/_bootstrap_python’<br /> sys.base_prefix = ‘/usr/local’</p> <p>This is on Centos 7 (which came with python 3.6.8 installed).</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=5640#respond" data-commentid="5640" data-postid="1136" data-belowelement="div-comment-5640" data-respondelement="respond" data-replyto="Reply to John Lovell" aria-label="Reply to John Lovell">Reply</a> </div> </div></li><!-- #comment-## --> <li class="comment odd alt thread-odd thread-alt depth-1" id="comment-11229" > <div id ="div-comment-11229" class="comment-section clearfix"> <div class="col-avatar"> <figure class="comment-avatar"> <img alt='' src='https://secure.gravatar.com/avatar/75b7fa8846e6bfe11c5cb0c2ff472e09?s=80&d=retro&r=g' srcset='https://secure.gravatar.com/avatar/75b7fa8846e6bfe11c5cb0c2ff472e09?s=160&d=retro&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' loading='lazy' decoding='async'/> </figure> </div> <div class="comment-body" role="complementary"> <header class="comment-meta"> <div clas="comment-meta-top"> <div class="comment-author vcard"> Mel Lester Jr. </div> <time class="comment-date comment-metadata" datetime="10:29 pm"> <span>June 20, 2024,</span> <a class="comment-time comment-link" href="https://linuxstans.com/how-to-install-python-centos/#comment-11229">10:29 pm</a> </time> </div> </header> <div class="comment-content tc-content-inner"><p>Thanks for this information. The install went flawlessly.</p> </div> <a rel="nofollow" class="comment-reply-link" href="https://linuxstans.com/how-to-install-python-centos/?replytocom=11229#respond" data-commentid="11229" data-postid="1136" data-belowelement="div-comment-11229" data-respondelement="respond" data-replyto="Reply to Mel Lester Jr." aria-label="Reply to Mel Lester Jr.">Reply</a> </div> </div></li><!-- #comment-## --> </ul> </div> </div> </section> </div> </div> </div> <div class="right sidebar tc-sidebar col-12 col-md-3 text-md-right" > <div id="right" class="widget-area" role="complementary"> <aside class="social-block widget widget_social"> <div class="social-links"> <ul class="socials " > <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-facebook" title="Follow us on Facebook" aria-label="Follow us on Facebook" href="https://www.facebook.com/LinuxFan5/" target="_blank" ><i class="fab fa-facebook"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-youtube" title="Follow us on Youtube" aria-label="Follow us on Youtube" href="https://www.youtube.com/channel/UCf_tvHKC5e_zIFA-YH4PRTA" target="_blank" ><i class="fab fa-youtube"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-twitter" title="Follow us on Twitter" aria-label="Follow us on Twitter" href="https://twitter.com/StansLinux" target="_blank" ><i class="fab fa-twitter"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-mail" title="Follow us on Email" aria-label="Follow us on Email" href="https://linuxstans.com/newsletter/" target="_blank" ><i class="fas fa-envelope"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-feed" title="Subscribe to my rss feed" aria-label="Subscribe to my rss feed" href="https://linuxstans.com/feed/rss/" target="_blank" ><i class="fas fa-rss"></i></a></li></ul> </div> </aside> <aside id="search-2" class="widget widget_search"><div class="search-form__container " > <form action="https://linuxstans.com/" method="get" class="czr-form search-form"> <div class="form-group czr-focus"> <label for="s-67be045d0fe39" id="lsearch-67be045d0fe39"> <span class="screen-reader-text">Search</span> <input id="s-67be045d0fe39" class="form-control czr-search-field" name="s" type="search" value="" aria-describedby="lsearch-67be045d0fe39" placeholder="Search …"> </label> <button type="submit" class="button"><i class="icn-search"></i><span class="screen-reader-text">Search …</span></button> </div> </form> </div></aside><aside id="recent-comments-4" class="widget widget_recent_comments"><h3 class="widget-title">Recent Comments</h3><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link">arhunter</span> on <a href="https://linuxstans.com/linux-phone/#comment-40902">Best Linux Phone: All Options Compared</a></li><li class="recentcomments"><span class="comment-author-link">Nancy velv</span> on <a href="https://linuxstans.com/privacy-macos-vs-linux/#comment-38949">Privacy on macOS vs Linux: Which OS Protects Your Data Better?</a></li><li class="recentcomments"><span class="comment-author-link">Bobob</span> on <a href="https://linuxstans.com/linux-phone/#comment-36709">Best Linux Phone: All Options Compared</a></li><li class="recentcomments"><span class="comment-author-link">Friar Tux</span> on <a href="https://linuxstans.com/best-office-suites-for-linux/#comment-35741">6 Best Office Suites for Linux in 2024</a></li><li class="recentcomments"><span class="comment-author-link">hadnuff</span> on <a href="https://linuxstans.com/best-linux-distros-for-mac-users/#comment-35281">Best Linux Distros For Mac Users: Top 3 Distros</a></li></ul></aside> <aside id="recent-posts-4" class="widget widget_recent_entries"> <h3 class="widget-title">Recent Articles</h3> <ul> <li> <a href="https://linuxstans.com/privacy-macos-vs-linux/">Privacy on macOS vs Linux: Which OS Protects Your Data Better?</a> </li> <li> <a href="https://linuxstans.com/what-is-sase-and-how-to-use-it-on-linux/">What is SASE and How to Use It on Linux</a> </li> <li> <a href="https://linuxstans.com/best-gamepads-for-linux/">Best Gamepads for Linux</a> </li> <li> <a href="https://linuxstans.com/microsoft-onedrive-on-linux/">How to use Microsoft OneDrive on Linux</a> </li> <li> <a href="https://linuxstans.com/google-drive-on-linux/">How to use Google Drive on Linux</a> </li> </ul> </aside><aside id="text-3" class="widget widget_text"><h3 class="widget-title">Become a Stan!</h3> <div class="textwidget"><p><strong><a href="https://www.facebook.com/groups/linux.fans.group"><i class="fab fa-7x fa-facebook-square"></i><br /> <strong>Join our Facebook group</strong>.</a></strong></p> </div> </aside><aside id="mc4wp_form_widget-2" class="widget widget_mc4wp_form_widget"><h3 class="widget-title">Join our Newsletter</h3><script>(function() { window.mc4wp = window.mc4wp || { listeners: [], forms: { on: function(evt, cb) { window.mc4wp.listeners.push( { event : evt, callback: cb } ); } } } })(); </script><!-- Mailchimp for WordPress v4.10.1 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-1" class="mc4wp-form mc4wp-form-93" method="post" data-id="93" data-name="Join the Linux Stans" ><div class="mc4wp-form-fields"><p> <label>Email address: <input type="email" name="EMAIL" placeholder="Your email address" required /> </label> </p> <p> <input type="submit" value="Sign up" /> </p></div><label style="display: none !important;">Leave this field empty if you're human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1740506205" /><input type="hidden" name="_mc4wp_form_id" value="93" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-1" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin --></aside><aside id="text-4" class="widget widget_text"><h3 class="widget-title">Worth checking out</h3> <div class="textwidget"><div class="text-center"> <div style="background-color: #16a085; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/linux-laptop/"><i class="fas fa-laptop-code fa-2x"></i><br /> Buy a Linux Laptop</a></div> <div style="background-color: #3498db; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/best-linux-vps-hosting/"><i class="fa fa-server fa-2x"></i><br /> Buy a Linux Server</a></div> <div style="background-color: #e74c3c; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/linux-phone/"><i class="fa fa-mobile fa-2x"></i><br /> Buy a Linux Phone</a></div> <div style="background-color: #2c3e50; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/linux-books/"><i class="fas fa-book fa-2x"></i><br /> Buy a Linux Book</a></div> <div style="background-color: #2ecc71; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/best-gifts-for-linux-users/"><i class="fas fa-gift fa-2x"></i><br /> Buy a Linux Gift</a></div> <div style="background-color: #e67e22; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/linux-tablet/"><i class="fas fa-tablet fa-2x"></i><br /> Buy a Linux Tablet</a></div> <div style="background-color: #2980b9; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/best-cloud-storage-linux/"><i class="fas fa-cloud fa-lg"></i><br /> Buy Linux Cloud Storage</a></div> <div style="background-color: #c0392b; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/best-gamepads-for-linux/"><i class="fas fa-gamepad fa-lg"></i><br /> Buy a Linux Gamepad</a></div> <div style="background-color: #f1c40f; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/where-to-learn-linux/"><i class="fas fa-certificate fa-2x"></i><br /> Learn Linux and Get Certified</a></div> <div style="background-color: #9b59b6; padding: 1em 1em 1em 1em;"><a style="color: #fafafa;" href="https://linuxstans.com/sudo-rm-rf/"><i class="fas fa-exclamation-triangle fa-2x"></i><br /> DON’T RUN THIS COMMAND ON LINUX!</a></div> </div> </div> </aside> </div> </div> </div><!-- .column-content-wrapper --> </div><!-- .container --> <div id="czr-push-footer" ></div> </div><!-- #main-wrapper --> <div class="container-fluid"> <div class="post-navigation row " > <nav id="nav-below" class="col-12"> <h2 class="sr-only">Post navigation</h2> <ul class="czr_pager row flex-row flex-no-wrap"> <li class="previous col-5 text-left"> <span class="sr-only">Previous post</span> <span class="nav-previous nav-dir"><a href="https://linuxstans.com/how-to-install-python-ubuntu/" rel="prev"><span class="meta-nav"><i class="arrow icn-left-open-big"></i><span class="meta-nav-title">How to Install Python on Ubuntu</span></span></a></span> </li> <li class="nav-back col-2 text-center"> <a href="https://linuxstans.com/" title="Back to post list"> <span><i class="icn-grid-empty"></i></span> <span class="sr-only">Back to post list</span> </a> </li> <li class="next col-5 text-right"> <span class="sr-only">Next post</span> <span class="nav-next nav-dir"><a href="https://linuxstans.com/how-to-install-php-centos/" rel="next"><span class="meta-nav"><span class="meta-nav-title">How to Install PHP on CentOS</span><i class="arrow icn-right-open-big"></i></span></a></span> </li> </ul> </nav> </div> </div> <footer id="footer" class="footer__wrapper" > <div id="footer-widget-area" class="widget__wrapper" role="complementary" > <div class="container widget__container"> <div class="row"> <div id="footer_one" class="col-md-4 col-12"> <aside id="text-2" class="widget widget_text"><h5 class="widget-title">About LinuxStans.com</h5> <div class="textwidget"><p><a href="https://linuxstans.com/about/"><img decoding="async" class="alignleft ewww_webp" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="LinuxStans" width="30%" height="30%" data-src-img="https://linuxstans.com/wp-content/uploads/2020/10/LinuxStansIcon512.png" data-src-webp="https://linuxstans.com/wp-content/uploads/2020/10/LinuxStansIcon512.png.webp" data-eio="j" /><noscript><img decoding="async" class="alignleft" src="https://linuxstans.com/wp-content/uploads/2020/10/LinuxStansIcon512.png" alt="LinuxStans" width="30%" height="30%" /></noscript></a><br /> Content by Linux Fans for Everyone.</p> <p>Linux Stans is a website created and maintained by Linux <del>Fans</del> <abbr title="Being a stan means to be an overzealous or obsessive fan of a particular celebrity. In this case, of Linux.">Stans</abbr>. Read all kinds of unique content related to Linux – distros lists, tutorials, comparisons, news, and more.</p> <p>When you buy a product or service through some of the links on this website, we receive a commission. Read our affiliate disclaimer <a href="https://linuxstans.com/affiliate-disclosure/">here</a>. As an Amazon Associate, I earn from qualifying purchases.</p> </div> </aside><aside id="mc4wp_form_widget-3" class="widget widget_mc4wp_form_widget"><h5 class="widget-title">Become a stan – join our newsletter!</h5><script>(function() { window.mc4wp = window.mc4wp || { listeners: [], forms: { on: function(evt, cb) { window.mc4wp.listeners.push( { event : evt, callback: cb } ); } } } })(); </script><!-- Mailchimp for WordPress v4.10.1 - https://wordpress.org/plugins/mailchimp-for-wp/ --><form id="mc4wp-form-2" class="mc4wp-form mc4wp-form-93" method="post" data-id="93" data-name="Join the Linux Stans" ><div class="mc4wp-form-fields"><p> <label>Email address: <input type="email" name="EMAIL" placeholder="Your email address" required /> </label> </p> <p> <input type="submit" value="Sign up" /> </p></div><label style="display: none !important;">Leave this field empty if you're human: <input type="text" name="_mc4wp_honeypot" value="" tabindex="-1" autocomplete="off" /></label><input type="hidden" name="_mc4wp_timestamp" value="1740506205" /><input type="hidden" name="_mc4wp_form_id" value="93" /><input type="hidden" name="_mc4wp_form_element_id" value="mc4wp-form-2" /><div class="mc4wp-response"></div></form><!-- / Mailchimp for WordPress Plugin --></aside> </div> <div id="footer_two" class="col-md-4 col-12"> <aside id="recent-comments-3" class="widget widget_recent_comments"><h5 class="widget-title">Recent Comments</h5><ul id="recentcomments-3"><li class="recentcomments"><span class="comment-author-link">arhunter</span> on <a href="https://linuxstans.com/linux-phone/#comment-40902">Best Linux Phone: All Options Compared</a></li><li class="recentcomments"><span class="comment-author-link">Nancy velv</span> on <a href="https://linuxstans.com/privacy-macos-vs-linux/#comment-38949">Privacy on macOS vs Linux: Which OS Protects Your Data Better?</a></li><li class="recentcomments"><span class="comment-author-link">Bobob</span> on <a href="https://linuxstans.com/linux-phone/#comment-36709">Best Linux Phone: All Options Compared</a></li><li class="recentcomments"><span class="comment-author-link">Friar Tux</span> on <a href="https://linuxstans.com/best-office-suites-for-linux/#comment-35741">6 Best Office Suites for Linux in 2024</a></li><li class="recentcomments"><span class="comment-author-link">hadnuff</span> on <a href="https://linuxstans.com/best-linux-distros-for-mac-users/#comment-35281">Best Linux Distros For Mac Users: Top 3 Distros</a></li><li class="recentcomments"><span class="comment-author-link">David Kachel</span> on <a href="https://linuxstans.com/adobe-photoshop-ubuntu/#comment-35046">How to Install and Use Adobe Photoshop on Ubuntu</a></li><li class="recentcomments"><span class="comment-author-link"><a href="https://philipmcgaw.com" class="url" rel="ugc external nofollow">Philip McGaw</a></span> on <a href="https://linuxstans.com/linux-zip/#comment-34073">Linux: ZIP Files and Directories (How To Tutorial)</a></li><li class="recentcomments"><span class="comment-author-link"><a href="https://linuxstans.com" class="url" rel="ugc">Linux Stans</a></span> on <a href="https://linuxstans.com/black-friday-linux/#comment-4515">Best Black Friday Linux Deals</a></li><li class="recentcomments"><span class="comment-author-link">K Fisher</span> on <a href="https://linuxstans.com/linux-tablet/#comment-30229">Linux Tablet: Best Options, Comparison, and Guide</a></li><li class="recentcomments"><span class="comment-author-link">Bob Stockdale</span> on <a href="https://linuxstans.com/linux-phone/#comment-11971">Best Linux Phone: All Options Compared</a></li></ul></aside> </div> <div id="footer_three" class="col-md-4 col-12"> <aside id="recent-posts-3" class="widget widget_recent_entries"> <h5 class="widget-title">Latest Articles</h5> <ul> <li> <a href="https://linuxstans.com/privacy-macos-vs-linux/">Privacy on macOS vs Linux: Which OS Protects Your Data Better?</a> </li> <li> <a href="https://linuxstans.com/what-is-sase-and-how-to-use-it-on-linux/">What is SASE and How to Use It on Linux</a> </li> <li> <a href="https://linuxstans.com/best-gamepads-for-linux/">Best Gamepads for Linux</a> </li> <li> <a href="https://linuxstans.com/microsoft-onedrive-on-linux/">How to use Microsoft OneDrive on Linux</a> </li> <li> <a href="https://linuxstans.com/google-drive-on-linux/">How to use Google Drive on Linux</a> </li> <li> <a href="https://linuxstans.com/installing-qemu-on-debian-with-xfce-desktop/">Installing QEMU on Debian with XFCE Desktop</a> </li> <li> <a href="https://linuxstans.com/linux-restart-command/">How to Restart Linux with a Command</a> </li> </ul> </aside><aside id="nav_menu-2" class="widget widget_nav_menu"><h5 class="widget-title">Info</h5><div class="menu-footer-menu-container"><ul id="menu-footer-menu" class="menu"><li id="menu-item-68" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-68"><a href="https://linuxstans.com/affiliate-disclosure/">Affiliate Disclosure</a></li> <li id="menu-item-69" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-69"><a href="https://linuxstans.com/terms-and-conditions/">Terms and Conditions</a></li> <li id="menu-item-70" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-privacy-policy menu-item-70"><a rel="privacy-policy" href="https://linuxstans.com/privacy-policy/">Privacy Policy</a></li> </ul></div></aside> </div> </div> </div> </div> <div id="colophon" class="colophon " > <div class="container-fluid"> <div class="colophon__row row flex-row justify-content-between"> <div class="col-12 col-sm-auto"> <div id="footer__credits" class="footer__credits" > <p class="czr-copyright"> <span class="czr-copyright-text">© 2025 </span><a class="czr-copyright-link" href="https://linuxstans.com" title="Linux Stans">Linux Stans</a><span class="czr-rights-text"> – All rights reserved</span> </p> <p class="czr-credits"> <span class="czr-designer"> <span class="czr-wp-powered"><span class="czr-wp-powered-text">Powered by </span><a class="czr-wp-powered-link" title="Powered by WordPress" href="https://wordpress.org/" target="_blank" rel="noopener noreferrer">WP</a></span><span class="czr-designer-text"> – Designed with the <a class="czr-designer-link" href="https://presscustomizr.com/customizr" title="Customizr theme">Customizr theme</a></span> </span> </p> </div> </div> <div class="col-12 col-sm-auto"> <div class="social-links"> <ul class="socials " > <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-facebook" title="Follow us on Facebook" aria-label="Follow us on Facebook" href="https://www.facebook.com/LinuxFan5/" target="_blank" ><i class="fab fa-facebook"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-youtube" title="Follow us on Youtube" aria-label="Follow us on Youtube" href="https://www.youtube.com/channel/UCf_tvHKC5e_zIFA-YH4PRTA" target="_blank" ><i class="fab fa-youtube"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-twitter" title="Follow us on Twitter" aria-label="Follow us on Twitter" href="https://twitter.com/StansLinux" target="_blank" ><i class="fab fa-twitter"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-mail" title="Follow us on Email" aria-label="Follow us on Email" href="https://linuxstans.com/newsletter/" target="_blank" ><i class="fas fa-envelope"></i></a></li> <li ><a rel="nofollow noopener noreferrer" class="social-icon icon-feed" title="Subscribe to my rss feed" aria-label="Subscribe to my rss feed" href="https://linuxstans.com/feed/rss/" target="_blank" ><i class="fas fa-rss"></i></a></li></ul> </div> </div> </div> </div> </div> </footer> </div><!-- end #tc-page-wrap --> <script>(function() {function maybePrefixUrlField () { const value = this.value.trim() if (value !== '' && value.indexOf('http') !== 0) { this.value = 'http://' + value } } const urlFields = document.querySelectorAll('.mc4wp-form input[type="url"]') for (let j = 0; j < urlFields.length; j++) { urlFields[j].addEventListener('blur', maybePrefixUrlField) } })();</script><script id="ta_main_js-js-extra"> var thirsty_global_vars = {"home_url":"\/\/linuxstans.com","ajax_url":"https:\/\/linuxstans.com\/wp-admin\/admin-ajax.php","link_fixer_enabled":"yes","link_prefix":"goto","link_prefixes":["recommends","goto"],"post_id":"1136","enable_record_stats":"yes","enable_js_redirect":"","disable_thirstylink_class":""}; </script> <script src="https://linuxstans.com/wp-content/plugins/thirstyaffiliates/js/app/ta.js?ver=3.11.4" id="ta_main_js-js"></script> <script src="https://linuxstans.com/wp-includes/js/comment-reply.min.js?ver=6.7.2" id="comment-reply-js" async data-wp-strategy="async"></script> <script src="https://linuxstans.com/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3" id="jquery-ui-core-js"></script> <script src="https://linuxstans.com/wp-content/themes/customizr/assets/front/js/libs/retina.min.js?ver=4.4.24" id="retinajs-js"></script> <script id="q2w3_fixed_widget-js-extra"> var q2w3_sidebar_options = [{"sidebar":"right","use_sticky_position":true,"margin_top":30,"margin_bottom":0,"stop_elements_selectors":"#czr-comments","screen_max_width":800,"screen_max_height":300,"widgets":["#text-4"]}]; </script> <script src="https://linuxstans.com/wp-content/plugins/q2w3-fixed-widget/js/frontend.min.js?ver=6.2.3" id="q2w3_fixed_widget-js"></script> <script defer src="https://linuxstans.com/wp-content/plugins/mailchimp-for-wp/assets/js/forms.js?ver=4.10.1" id="mc4wp-forms-api-js"></script> </body> </html> <!-- Dynamic page generated in 1.471 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2025-02-25 17:56:45 --> <!-- super cache -->