{"id":475,"date":"2022-11-14T00:17:30","date_gmt":"2022-11-13T16:17:30","guid":{"rendered":"https:\/\/unama.website\/?p=475"},"modified":"2022-12-03T18:26:18","modified_gmt":"2022-12-03T10:26:18","slug":"use-update-alternatives-to-change-python3-version","status":"publish","type":"post","link":"https:\/\/unama.website\/?p=475","title":{"rendered":"use update-alternatives to change python3 version"},"content":{"rendered":"\n<p>Step 1. install python3.8 and python3.10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:deadsnakes\/ppa\nsudo apt-get update\nsudo apt-get install python3.10\nsudo apt install python3.8<\/code><\/pre>\n\n\n\n<p>Step 2. add python3.8 and python3.10 selection number in 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<p>Step 3. use this command to change python3 version<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-alternatives --config python3<\/code><\/pre>\n\n\n\n<p>Step 4. check python3 version<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -V<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Step 1. install python3.8 and python3.10 Step 2. add python3.8 and python3.10 se&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/unama.website\/?p=475\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,11],"tags":[],"_links":{"self":[{"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/posts\/475"}],"collection":[{"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unama.website\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475"}],"version-history":[{"count":1,"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/unama.website\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions\/476"}],"wp:attachment":[{"href":"https:\/\/unama.website\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unama.website\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unama.website\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}