{"id":737,"date":"2022-02-24T14:17:01","date_gmt":"2022-02-24T19:17:01","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=737"},"modified":"2022-02-24T14:17:03","modified_gmt":"2022-02-24T19:17:03","slug":"how-to-install-python-on-your-machine","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/how-to-install-python-on-your-machine\/","title":{"rendered":"How to install python on your machine"},"content":{"rendered":"\n<p>This post show how to install and run python on Ubuntu Linux system or Mac OS system. It covers python3.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing and running<\/h3>\n\n\n\n<p>If you are using Linux, python3 is probably already installed on your system. Type the following to check:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>which python3<\/code><\/pre>\n\n\n\n<p>If you don&#8217;t have it installed, the command to install on Ubuntu is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install python3\nsudo apt-get install python-pip3<\/code><\/pre>\n\n\n\n<p>On mac,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install python3\nbrew install pip3<\/code><\/pre>\n\n\n\n<p>To check if the python3 and pip3 was installed,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>which python3\nwhich pip3<\/code><\/pre>\n\n\n\n<p>To run a python program, simply type python3 and the file you want to run.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 hello.py<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post show how to install and run python on Ubuntu Linux system or Mac OS system. It covers python3. Installing and running If you are using Linux, python3 is probably already installed on your system. Type the following to check: If you don&#8217;t have it installed, the command to install on Ubuntu is: On [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[203],"tags":[82,137],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-python","tag-installation-guide","tag-python"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/737\/revisions\/738"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}