{"id":970,"date":"2023-12-18T22:42:21","date_gmt":"2023-12-18T14:42:21","guid":{"rendered":"https:\/\/www.dd-home.top\/?p=970"},"modified":"2023-12-20T09:00:25","modified_gmt":"2023-12-20T01:00:25","slug":"conda-%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.dd-home.top\/?p=970","title":{"rendered":"Conda \u914d\u7f6e"},"content":{"rendered":"<h4>Conda \u914d\u7f6e\u90e8\u7f72\u76f8\u5173\u8d44\u6599<\/h4>\n<p><!--more--><\/p>\n<h4 class=\"md-end-block md-heading\"><span class=\"md-plain md-expand\">1\u3001\u4e0b\u8f7d\u5730\u5740<\/span><\/h4>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"text\" spellcheck=\"false\"><span role=\"presentation\">https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Windows-x86_64.exe<\/span><\/pre>\n<h4 class=\"md-end-block md-heading\"><span class=\"md-plain\">2\u3001\u8fdb\u884c\u5b89\u88c5\u914d\u7f6e<\/span><\/h4>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u4f46\u662f\u5b89\u88c5\u5305\u63d0\u793a\u4e0d\u8981\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\uff0c\u770b\u7740\u529e\u5427\u3002<\/span><\/span>\r\n<span role=\"presentation\">C:\\Users\\{\u7528\u6237\u540d}\\miniconda3\\condabin<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u751f\u6210.condarc \u914d\u7f6e\u6587\u4ef6\uff0c\u6587\u4ef6\u8def\u5f84\u4e3a\u7528\u6237\u76ee\u5f55\u4e0b<\/span><\/span>\r\n<span role=\"presentation\">conda config <span class=\"cm-attribute\">--set<\/span> show_channel_urls <span class=\"cm-builtin\">yes<\/span><\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#conda\u6ce8\u5165powershell<\/span><\/span>\r\n<span role=\"presentation\">conda init powershell<\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u4fee\u6539powershell\u53ef\u6267\u884c\u811a\u672c\u6743\u9650<\/span><\/span>\r\n<span role=\"presentation\">Set-ExecutionPolicy RemoteSigned<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u56de\u590d\u9ed8\u8ba4\u503c<\/span><\/span>\r\n<span role=\"presentation\">Set-ExecutionPolicy Restricted<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u9ed8\u8ba4powershell \u5df2\u7ecf\u6fc0\u6d3bbase\u73af\u5883<\/span><\/span>\r\n<span role=\"presentation\">conda config <span class=\"cm-attribute\">--set<\/span> auto_activate_base False<\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u5f00\u542f<\/span><\/span>\r\n<span role=\"presentation\">conda config <span class=\"cm-attribute\">--set<\/span> auto_activate_base True<\/span><\/pre>\n<h4 class=\"md-end-block md-heading\"><span class=\"md-plain\">3\u3001\u4f7f\u7528\u56fd\u5185\u955c\u50cf<\/span><\/h4>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\"># https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/anaconda\/<\/span><\/span>\r\n<span role=\"presentation\">\u200b<\/span>\r\n<span role=\"presentation\">channels:<\/span>\r\n<span role=\"presentation\"> \u00a0<span class=\"cm-attribute\">-<\/span> defaults<\/span>\r\n<span role=\"presentation\">show_channel_urls: <span class=\"cm-atom\">true<\/span><\/span>\r\n<span role=\"presentation\">default_channels:<\/span>\r\n<span role=\"presentation\"> \u00a0<span class=\"cm-attribute\">-<\/span> https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/main<\/span>\r\n<span role=\"presentation\"> \u00a0<span class=\"cm-attribute\">-<\/span> https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/r<\/span>\r\n<span role=\"presentation\"> \u00a0<span class=\"cm-attribute\">-<\/span> https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/msys2<\/span>\r\n<span role=\"presentation\">custom_channels:<\/span>\r\n<span role=\"presentation\">  conda-forge: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  msys2: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  bioconda: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  menpo: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  pytorch: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  pytorch-lts: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  simpleitk: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud<\/span>\r\n<span role=\"presentation\">  deepmodeling: https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud\/<\/span><\/pre>\n<pre class=\"md-fences md-end-block ty-contain-cm modeLoaded\" lang=\"shell\" spellcheck=\"false\"><span role=\"presentation\"><span class=\"cm-comment\">#\u6e05\u9664\u7d22\u5f15\u7f13\u5b58\uff0c\u4fdd\u8bc1\u7528\u7684\u662f\u955c\u50cf\u7ad9\u63d0\u4f9b\u7684\u7d22\u5f15\u3002<\/span><\/span>\r\n<span role=\"presentation\">conda clean <span class=\"cm-attribute\">-i<\/span><\/span>\r\n<span role=\"presentation\"><span class=\"cm-comment\">#\u8fd0\u884c\u6d4b\u8bd5<\/span><\/span>\r\n<span role=\"presentation\">conda create <span class=\"cm-attribute\">-n<\/span> myenv numpy<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Conda \u914d\u7f6e\u90e8\u7f72\u76f8\u5173\u8d44\u6599<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"class_list":["post-970","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=970"}],"version-history":[{"count":3,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions"}],"predecessor-version":[{"id":976,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/970\/revisions\/976"}],"wp:attachment":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}