{"id":643,"date":"2019-12-02T19:12:10","date_gmt":"2019-12-02T19:12:10","guid":{"rendered":"http:\/\/ijbd.eu\/?p=643"},"modified":"2019-12-02T19:12:10","modified_gmt":"2019-12-02T19:12:10","slug":"multiple-python-versions-on-linux","status":"publish","type":"post","link":"https:\/\/ijbd.eu\/?p=643","title":{"rendered":"Multiple Python versions on Linux"},"content":{"rendered":"\n<p>Linux comes with Python bundled, but if it often lags recent developments. If you need a specific version of Python you can download it from <a href=\"https:\/\/www.python.org\/\">python.org<\/a> and install on your box. You can take .xz archive, it is slightly smaller and tar available on you linux box should handle it. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># change to a suitable directory and unpack python\ntar xf ~\/Downloads\/Python-3.8.0.tar.xz \n.\/configure --prefix $HOME\/.local    # any directory you can write to is fine\nmake\nmake test\nmake install\n# make sure $HOME\/.local\/bin is on your $PATH\n# python versions come with a nice naming convention\npython3.8    # invokes python 3.8 interpreter you have installed\npip3.8       # installs packages for your version\n# now you can create a virtual environment for your development\npython3.8 -m venv project_directory<\/code><\/pre>\n\n\n\n<p>You don&#8217;t need to install python with sudo if you need it for private use. System rights are only needed if you want the software available for other users. If a software can run without system rights it should be run without them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux comes with Python bundled, but if it often lags recent developments. If you need a specific version of Python you can download it from python.org and install on your box. You can take .xz archive, it is slightly smaller and tar available on you linux box should handle it. You don&#8217;t need to install [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[8,1],"tags":[],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-instrukcje","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4qwq1-an","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ijbd.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=643"}],"version-history":[{"count":3,"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":1332,"href":"https:\/\/ijbd.eu\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions\/1332"}],"wp:attachment":[{"href":"https:\/\/ijbd.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ijbd.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ijbd.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}