{"id":69,"date":"2022-06-15T09:47:28","date_gmt":"2022-06-15T04:17:28","guid":{"rendered":"https:\/\/varuna.aero.iitb.ac.in\/ace\/?p=69"},"modified":"2022-07-04T07:38:19","modified_gmt":"2022-07-04T02:08:19","slug":"setting-up-python-via-anaconda-script","status":"publish","type":"post","link":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/2022\/06\/15\/setting-up-python-via-anaconda-script\/","title":{"rendered":"Setting up Python via Miniconda Script"},"content":{"rendered":"\n<p style=\"font-size:16px\">We will see how to set up the latest Python via miniconda on ACE HPC. You can download the latest python version as per your OS from here <a href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>MiniConda<\/strong><\/a> (<em>Linux &#8211; Miniconda3 Linux 64-bit<\/em> )<\/p>\n\n\n\n<p style=\"font-size:14px\"><em>Please make sure you have enabled internet. &#8211; <\/em><a href=\"https:\/\/www.cc.iitb.ac.in\/attachments\/sso\/InternetAccess_WithoutGUI.pdf\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Internet Without GUI<\/em><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:15px\"><code>#download Python script\nwget https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh\n\n#make it executable\nchmod +x Miniconda3-latest-Linux-x86_64.sh\n\n#Install python\n.\/Miniconda3-latest-Linux-x86_64.sh\n\n.\n.\n.\nPlease, <strong>Press ENTER<\/strong> to continue\n&gt;&gt;&gt;\nDo you accept the license terms? &#91;yes|no]\n&#91;no] &gt;&gt;&gt;  <strong>yes<\/strong>\n.\n.\n.\n.\n#<strong>Press ENTER<\/strong>\nAnaconda3 will now be installed into this location:\n\/home\/user\/miniconda3\n\n  - Press ENTER to confirm the location\n  - Press CTRL-C to abort the installation\n  - Or specify a different location below\n\n&#91;\/home\/user\/miniconda3] &gt;&gt;&gt;\n.\n.\n.\n.\n#<strong>Enter NO<\/strong>\nDo you wish the installer to initialize Miniconda3\nby running conda init? &#91;yes|no]\n&#91;no] &gt;&gt;&gt; <strong>no<\/strong>\n\n.\n.\n.\n.\n\nThank you for installing Miniconda3!\n.\n.\n.\n#You may wish to edit your .bashrc to prepend the miniconda install location to PATH:\n\n#miniconda\nexport PATH=$HOME\/miniconda3\/bin:$PATH\n\n#Then Source your bashrc to make the python environment reflect\nsource ~\/.bashrc\n\n#Check which python it is pointing to\nwhich python\n\nOutput :\n~\/miniconda3\/bin\/python\n\n#You can check the python version with below command.\npython --version\nPython 3.9.12\n\n#You can install pip and then later install all the packages you need via pip\nconda install -c anaconda pip\n\n\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We will see how to set up the latest Python via miniconda on ACE HPC. You can download the latest python version as per your OS from here MiniConda (Linux &#8211; Miniconda3 Linux 64-bit ) Please make sure you have enabled internet. &#8211; Internet Without GUI<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[15,17,16,14],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-anaconda","tag-conda","tag-miniconda","tag-python"],"_links":{"self":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":3,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/posts\/69\/revisions\/94"}],"wp:attachment":[{"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/varuna.aero.iitb.ac.in\/ace\/index.php\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}