{"id":54,"date":"2020-01-28T12:24:00","date_gmt":"2020-01-28T12:24:00","guid":{"rendered":"http:\/\/shresthabrijan.com.np\/?p=54"},"modified":"2020-03-28T11:45:16","modified_gmt":"2020-03-28T11:45:16","slug":"setup-environment-for-python","status":"publish","type":"post","link":"https:\/\/shresthabrijan.com.np\/?p=54","title":{"rendered":"Setup environment for python"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Anaconda Installation<\/h2>\n\n\n\n<p>For the installation, follow the link below:<br><a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\">https:\/\/docs.anaconda.com\/anaconda\/install<\/a><br><br>After completing the installation, To control whether or not each shell session has the base environment activated or not, run\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ conda&nbsp;config&nbsp;--set&nbsp;auto_activate_base&nbsp;False&nbsp;or&nbsp;True <\/pre>\n\n\n\n<p>To run conda from anywhere without having the base environment activated by default, use\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">conda&nbsp;config&nbsp;--set&nbsp;auto_activate_base&nbsp;False<\/pre>\n\n\n\n<p>This only works if you have run\u00a0<em><strong>conda\u00a0init<\/strong><\/em> first.<\/p>\n\n\n\n<p>To export the virtual environment, you can create a yml file by executing:<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">$ conda env export --no-build > environment.yml<\/pre>\n<\/div><\/div>\n\n\n\n<p>After that, you can restore the environment in server end by executing:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$  conda env create -f environment.yml <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda Installation For the installation, follow the link below:https:\/\/docs.anaconda.com\/anaconda\/install After completing the installation, To control whether or not each shell session has the base environment activated or not, run\u00a0 $ conda&nbsp;config&nbsp;&#8211;set&nbsp;auto_activate_base&nbsp;False&nbsp;or&nbsp;True To run conda from anywhere without having the base environment activated by default, use\u00a0 conda&nbsp;config&nbsp;&#8211;set&nbsp;auto_activate_base&nbsp;False This only works if you have run\u00a0conda\u00a0init first. To [&hellip;]<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/shresthabrijan.com.np\/?p=54\" class=\"btn btn-primary btn-lg\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-system-administration"],"_links":{"self":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":5,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":59,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions\/59"}],"wp:attachment":[{"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shresthabrijan.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}