{"id":33203,"date":"2021-01-07T09:29:58","date_gmt":"2021-01-07T09:29:58","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33203"},"modified":"2024-04-24T15:19:15","modified_gmt":"2024-04-24T15:19:15","slug":"install-python-3-10-alpha-ubuntu-20-04-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/01\/install-python-3-10-alpha-ubuntu-20-04-ubuntu-18-04\/","title":{"rendered":"How to Install Python 3.10 Final in Ubuntu 20.04, Ubuntu 18.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34796\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python-feature-icon.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>The Python programming language 3.10 is finally released on Oct 6. Here&#8217;s how to install it via PPA in Ubuntu 20.04, Ubuntu 18.04, Linux Mint 19.x\/20, and derivatives.<\/p>\n<p><a href=\"https:\/\/docs.python.org\/3.10\/whatsnew\/3.10.html\" target=\"_blank\" rel=\"noopener\">Python 3.10<\/a> has 18 months support with bug-fix updates until the next 3.11 release. After that, it will be supported with 5 years of security updates until October 2026.<\/p>\n<p>New major features and changes compare to Python 3.9:<\/p>\n<ul>\n<li>Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.<\/li>\n<li>Allow writing union types as X | Y<\/li>\n<li>Parameter Specification Variables<\/li>\n<li>Precise line numbers for debugging and other tools.<\/li>\n<li>Add Optional Length-Checking To zip.<\/li>\n<li>Parenthesized context managers are now officially allowed.<\/li>\n<li>Deprecate distutils module.<\/li>\n<li>Explicit Type Aliases<\/li>\n<li>Structural Pattern Matching<\/li>\n<li>Require OpenSSL 1.1.1 or newer<\/li>\n<li>Remove Py_UNICODE encoder APIs<\/li>\n<li>Add optional EncodingWarning<\/li>\n<\/ul>\n<h3>Install Python 3.10 via Ubuntu PPA:<\/h3>\n<p>The <a href=\"https:\/\/launchpad.net\/~deadsnakes\/+archive\/ubuntu\/ppa\" target=\"_blank\" rel=\"noopener\">&#8216;Deadsnakes&#8217; Team PPA<\/a> has build the packages for current 2 Ubuntu LTS. NOTE for Ubuntu 16.04, the package stuck at Python 3.10 alpha 6 due to old SSL library.<\/p>\n<p><b>1.)<\/b> Open terminal from system application menu, and run command to add the PPA:<\/p>\n<pre style=\"border: none;\">sudo add-apt-repository ppa:deadsnakes\/ppa<\/pre>\n<p><i>Type user password (no asterisk feedback) for sudo prompts and hit Enter to continue.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-33204\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/deadsnakes-ppa-600x146.jpg\" alt=\"\" width=\"600\" height=\"146\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/deadsnakes-ppa-600x146.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/deadsnakes-ppa-450x110.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/deadsnakes-ppa-768x187.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/deadsnakes-ppa.jpg 776w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.)<\/b> Then refresh system package via command:<\/p>\n<pre style=\"border: none;\">sudo apt update<\/pre>\n<p><b>3.)<\/b> Finally install Python 3.10 via command:<\/p>\n<pre style=\"border: none;\">sudo apt install python3.10<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33205\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-python310.png\" alt=\"\" width=\"600\" height=\"254\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-python310.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/apt-python310-450x191.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once installed, check via <code style=\"border: none; color: #000000;\">python3.10 --version<\/code> command or just run <code style=\"border: none; color: #000000;\">python3.10<\/code> to access the IDE in terminal.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python310-final.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34798\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python310-final.png\" alt=\"\" width=\"600\" height=\"260\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python310-final.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/python310-final-300x130.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Uninstall Python 3.10:<\/h3>\n<p>To remove the programming language, run command:<\/p>\n<pre style=\"border: none;\">sudo apt remove --autoremove python3.10<\/pre>\n<p>And remove the Ubuntu PPA via <b>Software &amp; Updates<\/b> utility under <i>Other Software<\/i> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-33207\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deadsnakes-ppa.png\" alt=\"\" width=\"600\" height=\"290\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deadsnakes-ppa.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/01\/remove-deadsnakes-ppa-450x218.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>The Python programming language 3.10 is finally released on Oct 6. Here&#8217;s how to install it via PPA in Ubuntu 20.04, Ubuntu 18.04, Linux Mint 19.x\/20, and derivatives. Python 3.10 has 18 months support with bug-fix updates until the next 3.11 release. After that, it will be supported with 5 years of security updates until [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34336,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2013],"class_list":["post-33203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-python-3-10"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=33203"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34336"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=33203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=33203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=33203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}