{"id":3725,"date":"2021-12-23T17:26:23","date_gmt":"2021-12-23T11:56:23","guid":{"rendered":"https:\/\/www.itsupportwale.com\/blog\/?p=3725"},"modified":"2026-02-17T15:54:10","modified_gmt":"2026-02-17T10:24:10","slug":"how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts","status":"publish","type":"post","link":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/","title":{"rendered":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS"},"content":{"rendered":"\n<p>In this article, we will upgrade to&nbsp;<strong>python 3.10<\/strong>&nbsp;and configure it as the default version of python in Ubuntu 18.04 and 20.04 LTS.<\/p>\n\n\n\n<p>The current stable version of python&nbsp;was <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.python.org\/release\/3.10.1\/whatsnew\/changelog.html#python-3-10-1-final\" target=\"_blank\">released<\/a>&nbsp;on 06 Dec. 2021. Many ubuntu users are facing problems during upgrading python to the latest version. Python 3.9 is available as default when we install Ubuntu 20.04 LTS and Python 3.8 is available in Ubuntu 18.04. Python 3.10.0 is not available in default Ubuntu 18.04 and 20.04 repositories.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Also Read:&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/oracle.itsupportwale.com\/blog\/how-to-upgrade-to-python-3-9-0-on-ubuntu-18-04-lts\/\" target=\"_blank\">How to upgrade to Python 3.9 on Ubuntu 18.10<\/a><\/li><\/ul>\n\n\n\n<p>So let\u2019s start with checking the currently installed version of Python on your system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -V<\/code><\/pre>\n\n\n\n<p>As seen in the image above, my currently installed Python version is 3.8.10 but yours may differ.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d810a4a95ba\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d810a4a95ba\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Install_Python_310\" >Install Python 3.10<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Step_1_Add_the_repository_and_update\" >Step 1: Add the repository and update<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Step_2_Install_the_Python_310_package_using_apt-get\" >Step 2: Install the Python 3.10 package using apt-get<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Step_3_Add_Python_38_Python_310_to_update-alternatives\" >Step 3: Add Python 3.8 &amp; Python 3.10 to update-alternatives<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Step_4_Update_Python_3_for_point_to_Python_310\" >Step 4: Update Python 3 for point to Python 3.10<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#Step_5_Test_the_version_of_python\" >Step 5: Test the version of python<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_Python_310\"><\/span>Install Python 3.10<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Follow the simple steps to install and configure&nbsp;<strong>Python 3.10<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Add_the_repository_and_update\"><\/span>Step 1: Add the repository and update<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Latest Python 3.10 is not available in Ubuntu\u2019s default repositories. So, we have to add an additional repository. On launchpad repository named&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/launchpad.net\/~deadsnakes\/+archive\/ubuntu\/ppa\" target=\"_blank\">deadsnakes<\/a>&nbsp;is available for Python Packages.<\/p>\n\n\n\n<p>Add the&nbsp;<strong>deadsnakes<\/strong>&nbsp;repository using the below commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:deadsnakes\/ppa\nsudo apt-get update<\/code><\/pre>\n\n\n\n<p>Update the package list using the below command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get update<\/code><\/pre>\n\n\n\n<p>Verify the updated Python packages list using this command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt list | grep python3.10<\/code><\/pre>\n\n\n\n<p>As seen in the image above, Now we have Python 3.10 available for installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Install_the_Python_310_package_using_apt-get\"><\/span>Step 2: Install the Python 3.10 package using apt-get<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>install Python 3.10 by using the below command :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install python3.10<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Add_Python_38_Python_310_to_update-alternatives\"><\/span>Step 3: Add Python 3.8 &amp; Python 3.10 to update-alternatives<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Add both old and new versions of Python to Update Alternatives.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-alternatives --install \/usr\/bin\/python3 python3 \/usr\/bin\/python3.8 1\nsudo update-alternatives --install \/usr\/bin\/python3 python3 \/usr\/bin\/python3.10 2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Update_Python_3_for_point_to_Python_310\"><\/span>Step 4: Update Python 3 for point to Python 3.10<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>By default, Python 3 is pointed to Python 3.8. That means when we run&nbsp;<strong>python3<\/strong>&nbsp;it will execute as&nbsp;<strong>python3.8<\/strong>&nbsp;but we want to execute this as&nbsp;<strong>python3.10<\/strong>.<\/p>\n\n\n\n<p>Type this command to configure&nbsp;<strong>python3<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-alternatives --config python3<\/code><\/pre>\n\n\n\n<p>You should get the above output. Now type&nbsp;<strong>2<\/strong>&nbsp;and hit enter for&nbsp;<strong>Python 3.10<\/strong>. Remember the selected number may differ so choose the selection number which is for&nbsp;<strong>Python 3.10<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Test_the_version_of_python\"><\/span>Step 5: Test the version of python<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Finally, test the current version of python by typing this :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -V<\/code><\/pre>\n\n\n\n<p>You should get&nbsp;<strong>Python 3.10&nbsp;<\/strong>as output.<\/p>\n\n\n\n<p>In this article, we learn how to upgrade python to the latest version that is 3.10 in Ubuntu 20.04 and 18.10.<\/p>\n\n\n\n<p>Share your thoughts in the comment section. Happy Learning \u2026!!<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Also Read:&nbsp;<a href=\"https:\/\/oracle.itsupportwale.com\/blog\/how-to-install-asterisk-16-on-ubuntu-18-04-lts\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install Asterisk 16 on Ubuntu 18.04 LTS<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will upgrade to&nbsp;python 3.10&nbsp;and configure it as the default version of python in Ubuntu 18.04 and 20.04 LTS. The current stable version of python&nbsp;was released&nbsp;on 06 Dec. 2021. Many ubuntu users are facing problems during upgrading python to the latest version. Python 3.9 is available as default when we install Ubuntu &#8230; <a title=\"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS\" class=\"read-more\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\" aria-label=\"Read more  on How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":3735,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[498,500,411,504,2,7],"tags":[79,601,80,81,602,603,74,600,76,73,14,570,72,606,605],"class_list":["post-3725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-foss","category-linux","category-python","category-tutorial","category-tutorials","category-ubuntu","tag-how-to-install-python-in-ubuntu","tag-how-to-install-python-in-ubuntu-20-04","tag-how-to-upgrade-python-in-ubuntu","tag-install-latest-python-in-ubuntu","tag-install-python-3-10","tag-install-python-3-10-ubuntu","tag-install-python-in-ubuntu","tag-python-3-10","tag-python-in-ubuntu-18","tag-python-in-ubutnu","tag-ubuntu-18-04-lts-bionic-beaver","tag-ubuntu-20-04-lts","tag-upgrade-python-in-ubuntu","tag-upgrade-to-python-3-10-ubuntu-18-04","tag-upgrade-to-python-3-10-ubuntu-20-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale<\/title>\n<meta name=\"description\" content=\"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale\" \/>\n<meta property=\"og:description\" content=\"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"ITSupportWale\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-23T11:56:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T10:24:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Techie\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Techie\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\"},\"author\":{\"name\":\"Techie\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\"},\"headline\":\"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS\",\"datePublished\":\"2021-12-23T11:56:23+00:00\",\"dateModified\":\"2026-02-17T10:24:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\"},\"wordCount\":381,\"commentCount\":18,\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg\",\"keywords\":[\"how to install python in ubuntu\",\"how to install python in ubuntu 20.04\",\"how to upgrade python in ubuntu\",\"install latest python in ubuntu\",\"install python 3.10\",\"install python 3.10 ubuntu\",\"install python in ubuntu\",\"python 3.10\",\"python in ubuntu 18\",\"python in ubutnu\",\"ubuntu 18.04 lts bionic beaver\",\"Ubuntu 20.04 LTS\",\"upgrade python in ubuntu\",\"upgrade to python 3.10 ubuntu 18.04\",\"upgrade to python 3.10 ubuntu 20.04\"],\"articleSection\":[\"FOSS\",\"Linux\",\"Python\",\"Tutorial\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\",\"name\":\"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale\",\"isPartOf\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg\",\"datePublished\":\"2021-12-23T11:56:23+00:00\",\"dateModified\":\"2026-02-17T10:24:10+00:00\",\"description\":\"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.\",\"breadcrumb\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg\",\"width\":1024,\"height\":576,\"caption\":\"upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itsupportwale.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#website\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"name\":\"ITSupportWale\",\"description\":\"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides\",\"publisher\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#organization\",\"name\":\"itsupportwale\",\"url\":\"https:\/\/itsupportwale.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"contentUrl\":\"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png\",\"width\":1119,\"height\":144,\"caption\":\"itsupportwale\"},\"image\":{\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Itsupportwale-298547177495978\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d\",\"name\":\"Techie\",\"sameAs\":[\"https:\/\/itsupportwale.com\",\"iswblogadmin\"],\"url\":\"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale","description":"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/","og_locale":"en_US","og_type":"article","og_title":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale","og_description":"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.","og_url":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/","og_site_name":"ITSupportWale","article_publisher":"https:\/\/www.facebook.com\/Itsupportwale-298547177495978","article_published_time":"2021-12-23T11:56:23+00:00","article_modified_time":"2026-02-17T10:24:10+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg","type":"image\/jpeg"}],"author":"Techie","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Techie","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#article","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/"},"author":{"name":"Techie","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d"},"headline":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS","datePublished":"2021-12-23T11:56:23+00:00","dateModified":"2026-02-17T10:24:10+00:00","mainEntityOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/"},"wordCount":381,"commentCount":18,"publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg","keywords":["how to install python in ubuntu","how to install python in ubuntu 20.04","how to upgrade python in ubuntu","install latest python in ubuntu","install python 3.10","install python 3.10 ubuntu","install python in ubuntu","python 3.10","python in ubuntu 18","python in ubutnu","ubuntu 18.04 lts bionic beaver","Ubuntu 20.04 LTS","upgrade python in ubuntu","upgrade to python 3.10 ubuntu 18.04","upgrade to python 3.10 ubuntu 20.04"],"articleSection":["FOSS","Linux","Python","Tutorial","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/","url":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/","name":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS - ITSupportWale","isPartOf":{"@id":"https:\/\/itsupportwale.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage"},"thumbnailUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg","datePublished":"2021-12-23T11:56:23+00:00","dateModified":"2026-02-17T10:24:10+00:00","description":"Python 3.8 is the default version that comes with Ubuntu But the latest version is Python 3.10. In this article, we upgrade to python 3.10.","breadcrumb":{"@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#primaryimage","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2021\/12\/upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04.jpg","width":1024,"height":576,"caption":"upgrade-to-python-3.10-on-ubuntu-20-04-and-18-04"},{"@type":"BreadcrumbList","@id":"https:\/\/itsupportwale.com\/blog\/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsupportwale.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to upgrade to Python 3.10 on Ubuntu 18.04 and 20.04 LTS"}]},{"@type":"WebSite","@id":"https:\/\/itsupportwale.com\/blog\/#website","url":"https:\/\/itsupportwale.com\/blog\/","name":"ITSupportWale","description":"Tips, Tricks, Fixed-Errors, Tutorials &amp; Guides","publisher":{"@id":"https:\/\/itsupportwale.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsupportwale.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itsupportwale.com\/blog\/#organization","name":"itsupportwale","url":"https:\/\/itsupportwale.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","contentUrl":"https:\/\/itsupportwale.com\/blog\/wp-content\/uploads\/2023\/09\/cropped-Logo-trans-without-slogan.png","width":1119,"height":144,"caption":"itsupportwale"},"image":{"@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Itsupportwale-298547177495978"]},{"@type":"Person","@id":"https:\/\/itsupportwale.com\/blog\/#\/schema\/person\/8c5a2b3d36396e0a8fd91ec8242fd46d","name":"Techie","sameAs":["https:\/\/itsupportwale.com","iswblogadmin"],"url":"https:\/\/itsupportwale.com\/blog\/author\/iswblogadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/3725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/comments?post=3725"}],"version-history":[{"count":1,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/3725\/revisions"}],"predecessor-version":[{"id":4592,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/posts\/3725\/revisions\/4592"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media\/3735"}],"wp:attachment":[{"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/media?parent=3725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/categories?post=3725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsupportwale.com\/blog\/wp-json\/wp\/v2\/tags?post=3725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}