{"id":156,"date":"2025-07-16T10:43:25","date_gmt":"2025-07-16T02:43:25","guid":{"rendered":"https:\/\/www.hgfwq.com\/blog\/?p=156"},"modified":"2025-07-16T10:43:25","modified_gmt":"2025-07-16T02:43:25","slug":"%e5%88%a0%e9%99%a4conda%e7%8e%af%e5%a2%83%e5%93%aa%e4%b8%aa%e6%98%af%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/www.hgfwq.com\/blog\/156.html","title":{"rendered":"\u5220\u9664conda\u73af\u5883\u54ea\u4e2a\u662f\u6700\u4f73\u5b9e\u8df5\u4e0e\u6ce8\u610f\u4e8b\u9879"},"content":{"rendered":"<p><h3>\u5220\u9664conda\u73af\u5883\uff1a\u5185\u5bb9\u4e0e\u64cd\u4f5c\u65b9\u6cd5<\/h3>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.hgfwq.com\/blog\/wp-content\/uploads\/2025\/07\/3HOJ2.jpg\" alt=\"\u5220\u9664conda\u73af\u5883\u54ea\u4e2a\u662f\u6700\u4f73\u5b9e\u8df5\u4e0e\u6ce8\u610f\u4e8b\u9879\" title=\"\u5220\u9664conda\u73af\u5883\u54ea\u4e2a\u662f\u6700\u4f73\u5b9e\u8df5\u4e0e\u6ce8\u610f\u4e8b\u9879\"><\/p>\n<p><p>\u5220\u9664conda\u73af\u5883\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u65e0\u8bba\u662f\u4e3a\u4e86\u6e05\u7406\u7a7a\u95f4\uff0c\u8fd8\u662f\u56e0\u4e3a\u67d0\u4e2a\u73af\u5883\u4e0d\u518d\u9700\u8981\u3002conda\u73af\u5883\u5305\u542b\u4e86\u4e00\u7cfb\u5217\u7684\u5305\u548c\u4f9d\u8d56\uff0c\u56e0\u6b64\u5220\u9664\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u73af\u5883\u540d\u79f0\uff1a\u9700\u8981\u77e5\u9053\u8981\u5220\u9664\u7684\u5177\u4f53\u73af\u5883\u540d\u79f0\u3002<\/li>\n<li>\u73af\u5883\u76ee\u5f55\uff1aconda\u73af\u5883\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u76ee\u5f55\uff0c\u5220\u9664\u73af\u5883\u65f6\u4e5f\u9700\u8981\u5220\u9664\u8fd9\u4e2a\u76ee\u5f55\u3002<\/li>\n<li>\u4f9d\u8d56\u5173\u7cfb\uff1a\u5220\u9664\u73af\u5883\u65f6\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u5230\u5176\u4ed6\u73af\u5883\u6216\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<p><h3>\u5220\u9664conda\u73af\u5883\uff1a\u64cd\u4f5c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u8981\u5220\u9664conda\u73af\u5883\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>conda remove --name \u73af\u5883\u540d\u79f0 --all<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c`\u73af\u5883\u540d\u79f0`\u9700\u8981\u66ff\u6362\u6210\u4f60\u60f3\u8981\u5220\u9664\u7684\u73af\u5883\u7684\u5b9e\u9645\u540d\u79f0\u3002<\/p>\n<\/p>\n<p><h3>\u63a8\u8350\uff1a\u4f7f\u7528conda\u914d\u7f6e\u6587\u4ef6\u5220\u9664\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u5b89\u5168\u5730\u5220\u9664\u73af\u5883\uff0c\u63a8\u8350\u4f7f\u7528conda\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u73af\u5883\u5217\u8868\u6765\u5220\u9664\u3002\u9996\u5148\uff0c\u6253\u5f00conda\u914d\u7f6e\u6587\u4ef6\uff08\u901a\u5e38\u662f`~\/.condarc`\uff09\uff0c\u627e\u5230`envs`\u90e8\u5206\uff0c\u5217\u51fa\u6240\u6709\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code>envs:<\/p>\r\n<p>  - myenv<\/p>\r\n<p>  - anotherenv<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code>conda env remove -n \u73af\u5883\u540d\u79f0<\/p>\r\n<p><\/code<\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u5217\u8868\u6765\u5220\u9664\u73af\u5883\uff0c\u907f\u514d\u8bef\u5220\u5176\u4ed6\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>\u4e3a\u4ec0\u4e48\u5220\u9664conda\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5220\u9664conda\u73af\u5883\u7684\u539f\u56e0\u6709\u5f88\u591a\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u60c5\u51b5\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u73af\u5883\u4e0d\u518d\u9700\u8981\uff1a\u4f8b\u5982\uff0c\u67d0\u4e2a\u9879\u76ee\u5df2\u7ecf\u5b8c\u6210\uff0c\u4e0d\u518d\u9700\u8981\u5bf9\u5e94\u7684\u5f00\u53d1\u73af\u5883\u3002<\/li>\n<li>\u6e05\u7406\u7a7a\u95f4\uff1a\u968f\u7740\u73af\u5883\u7684\u589e\u591a\uff0c\u53ef\u80fd\u4f1a\u5360\u7528\u5927\u91cf\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u5220\u9664\u4e0d\u518d\u4f7f\u7528\u7684\u73af\u5883\u53ef\u4ee5\u91ca\u653e\u7a7a\u95f4\u3002<\/li>\n<li>\u907f\u514d\u51b2\u7a81\uff1a\u4e0d\u540c\u73af\u5883\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u53ef\u80fd\u4f1a\u5bfc\u81f4\u51b2\u7a81\uff0c\u5220\u9664\u4e0d\u518d\u4f7f\u7528\u7684\u73af\u5883\u53ef\u4ee5\u51cf\u5c11\u8fd9\u79cd\u51b2\u7a81\u3002<\/li>\n<\/ul>\n<p><h3>\u95ee\u7b54\u73af\u8282<\/h3>\n<\/p>\n<p><p><b>\u95ee\uff1a<\/b>\u5220\u9664conda\u73af\u5883\u4f1a\u5220\u9664\u5176\u4e2d\u7684\u6240\u6709\u5305\u5417\uff1f<\/p>\n<\/p>\n<p><p>\u5220\u9664conda\u73af\u5883\u4f1a\u5220\u9664\u8be5\u73af\u5883\u4e0b\u7684\u6240\u6709\u5305\u548c\u4f9d\u8d56\uff0c\u4f46\u4e0d\u4f1a\u5f71\u54cd\u5230\u5176\u4ed6\u73af\u5883\u6216\u5168\u5c40\u5b89\u88c5\u7684\u5305\u3002<\/p>\n<\/p>\n<p><p><b>\u95ee\uff1a<\/b>\u5982\u4f55\u5220\u9664\u4e00\u4e2a\u540d\u4e3a\"myenv\"\u7684conda\u73af\u5883\uff1f<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664\u540d\u4e3a\"myenv\"\u7684conda\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code>conda remove --name myenv --all<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><p><b>\u95ee\uff1a<\/b>\u5220\u9664\u73af\u5883\u540e\uff0c\u5982\u4f55\u6062\u590d\u88ab\u5220\u9664\u7684\u73af\u5883\uff1f<\/p>\n<\/p>\n<p><p>\u5220\u9664\u73af\u5883\u540e\uff0c\u5982\u679c\u9700\u8981\u6062\u590d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u76f8\u540c\u540d\u79f0\u7684\u65b0\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code>conda create --name myenv<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u9700\u8981\u624b\u52a8\u5b89\u88c5\u4e4b\u524d\u5220\u9664\u73af\u5883\u65f6\u79fb\u9664\u7684\u5305\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5220\u9664conda\u73af\u5883\uff1a\u5185\u5bb9\u4e0e\u64cd\u4f5c\u65b9\u6cd5 \u5220\u9664conda\u73af\u5883\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u65e0\u8bba\u662f\u4e3a\u4e86\u6e05\u7406\u7a7a\u95f4\uff0c\u8fd8\u662f\u56e0\u4e3a\u67d0\u4e2a\u73af\u5883\u4e0d\u518d\u9700\u8981\u3002conda\u73af\u5883\u5305\u542b\u4e86\u4e00\u7cfb\u5217\u7684\u5305\u548c\u4f9d\u8d56\uff0c\u56e0\u6b64\u5220\u9664\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u5185\u5bb9\uff1a \u73af\u5883\u540d\u79f0\uff1a\u9700\u8981\u77e5\u9053\u8981\u5220\u9664\u7684\u5177\u4f53\u73af\u5883\u540d\u79f0\u3002 \u73af\u5883\u76ee\u5f55\uff1ac&#8230;<\/p>\n","protected":false},"author":1,"featured_media":157,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[88,89,90],"topic":[],"class_list":["post-156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-haiwai","tag-conda","tag-89","tag-90"],"_links":{"self":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":1,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions\/159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/media\/157"}],"wp:attachment":[{"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/tags?post=156"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hgfwq.com\/blog\/wp-json\/wp\/v2\/topic?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}