{"id":402,"date":"2021-10-01T12:35:04","date_gmt":"2021-10-01T16:35:04","guid":{"rendered":"https:\/\/www.dev-notes.com\/blog\/?p=402"},"modified":"2021-10-01T12:50:01","modified_gmt":"2021-10-01T16:50:01","slug":"useful-anaconda-commands-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2021\/10\/01\/useful-anaconda-commands-on-ubuntu\/","title":{"rendered":"Useful Anaconda Commands on Ubuntu"},"content":{"rendered":"<p>Example YAML environment file:<\/p>\n<pre>name: my_env\r\nchannels:\r\n- menpo\r\n- defaults\r\ndependencies:\r\n- python=3.7\r\n- numpy\r\n- scipy\r\n- matplotlib<\/pre>\n<p>Creating an environment from a YAML file:<\/p>\n<pre>conda env create -f my_env.yml<\/pre>\n<p>Updating an environment after updating the YAML environment file:<\/p>\n<pre>conda env update --file my_env.yml --prune<\/pre>\n<p>Activating an environment:<\/p>\n<pre>conda activate my_env<\/pre>\n<p>Deactivating an environment:<\/p>\n<pre>conda deactivate<\/pre>\n<p>Removing an environment:<\/p>\n<pre><span class=\"n\">conda<\/span> <span class=\"n\">remove<\/span> <span class=\"o\">--<\/span><span class=\"n\">name<\/span> <span class=\"n\">my_env<\/span> <span class=\"o\">--<\/span><span class=\"nb\">all<\/span><\/pre>\n<p>Show existing environments:<\/p>\n<pre><span class=\"n\">conda<\/span> <span class=\"n\">info<\/span> <span class=\"o\">--<\/span><span class=\"n\">envs<\/span><\/pre>\n<p>Here&#8217;s some real documentation for more information: <a href=\"https:\/\/docs.anaconda.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.anaconda.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example YAML environment file: name: my_env channels: &#8211; menpo &#8211; defaults dependencies: &#8211; python=3.7 &#8211; numpy &#8211; scipy &#8211; matplotlib Creating an environment from a YAML file: conda env create -f my_env.yml Updating an environment after updating the YAML environment file: conda env update &#8211;file my_env.yml &#8211;prune Activating an environment: conda activate my_env Deactivating an &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.dev-notes.com\/blog\/2021\/10\/01\/useful-anaconda-commands-on-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Useful Anaconda Commands on Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,9],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-anaconda","category-python"],"_links":{"self":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":4,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":406,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/402\/revisions\/406"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}