{"id":1548,"date":"2022-05-11T23:50:00","date_gmt":"2022-05-11T15:50:00","guid":{"rendered":"https:\/\/peloo.net\/?p=1548"},"modified":"2024-12-12T21:31:07","modified_gmt":"2024-12-12T13:31:07","slug":"win10%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%aeanaconda","status":"publish","type":"post","link":"https:\/\/peloo.net\/?p=1548","title":{"rendered":"win10\u5b89\u88c5\u548c\u914d\u7f6eAnaconda"},"content":{"rendered":"<h1>\u5b89\u88c5Anaconda\u8fc7\u7a0b<\/h1>\n<h2>\u4e0b\u8f7dwin10\u5bf9\u5e94\u7684Anaconda\u5b89\u88c5\u5305<\/h2>\n<p>\u4e0b\u8f7d\u5730\u5740<br \/>\n<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/\">https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/<\/a><br \/>\n\u4f7f\u7528gitbash\u91cc\u7684wget\u4e0b\u8f7d<br \/>\nwget -c -P . <a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/Anaconda3-2022.05-Windows-x86_64.exe\">https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/Anaconda3-2022.05-Windows-x86_64.exe<\/a><\/p>\n<h2>\u5b89\u88c5Anaconda<\/h2>\n<p>\u6309\u90e8\u5c31\u73ed\u5b89\u88c5\u5373\u53ef\uff0c\u8fc7\u7a0b\u6709\u70b9\u6162\u3002<\/p>\n<h2>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/h2>\n<p>path\u91cc\u6dfb\u52a0\u5982\u4e0b2\u4e2a\u53d8\u91cf\uff08\u5047\u8bbe\u5b89\u88c5\u8def\u5f84\u662fc:\\opt\\anaconda3\uff09\uff0c<br \/>\nc:\\opt\\anaconda3<br \/>\nc:\\opt\\anaconda3\\Scripts<\/p>\n<h2>\u914d\u7f6e\u6e90\uff08\u6b64\u5904\u5f88\u591a\u5e16\u5b50\u535a\u5ba2\u90fd\u5f88\u5751\uff0c\u6ca1\u8bf4\u5230\u70b9\u5b50\u4e0a\uff09<\/h2>\n<p>\u53c2\u8003\u4e00\u4e2a\u8001\u54e5\u7684\u5e16\u5b50<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/tianlang25\/p\/12433025.html\">https:\/\/www.cnblogs.com\/tianlang25\/p\/12433025.html<\/a><br \/>\n\u8fdb\u5165C:\\Users\\\u4f60\u7684\u7528\u6237\uff0c\u5199\u5165\u4e00\u4e0b\u5185\u5bb9\u5230.condarc\u5e76\u4fdd\u5b58\uff0c<br \/>\nssl_verify: true<br \/>\nshow_channel_urls: true<br \/>\nchannels:<br \/>\n- <a href=\"http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/free\/win-64\">http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/free\/win-64<\/a><br \/>\n- <a href=\"http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/main\/win-64\">http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/main\/win-64<\/a><\/p>\n<h2>\u5347\u7ea7Anaconda<\/h2>\n<p>\u6ce8\u610f\u5982\u679c\u7535\u8111\u5f00\u4e86\u4ee3\u7406\uff0c\u52a1\u5fc5\u5148\u5173\u95ed\u4ee3\u7406\u3002<br \/>\nconda upgrade --all -y<\/p>\n<h1>Anaconda\u4f7f\u7528<\/h1>\n<h2>\u67e5\u770b\u73af\u5883<\/h2>\n<p>conda env list<\/p>\n<h2>\u521b\u5efa\u73af\u5883<\/h2>\n<p>conda create -n py3813 python=3.8.13 -y<\/p>\n<h2>\u6fc0\u6d3b\u73af\u5883<\/h2>\n<p>conda init<br \/>\n\u91cd\u542f\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef<br \/>\nconda activate py3813<br \/>\n\u6bcf\u4e2a\u73af\u5883\u90fd\u662f\u72ec\u7acb\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305<\/p>\n<h2>\u914d\u7f6epip\u56fd\u5185\u6e90\uff08\u5982\u679c\u9700\u8981\uff09<\/h2>\n<p>pip config set global.index-url <a href=\"https:\/\/pypi.tuna.tsinghua.edu.cn\/simple\">https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/a><br \/>\npip config set global.index-url <a href=\"https:\/\/mirrors.aliyun.com\/pypi\/simple\">https:\/\/mirrors.aliyun.com\/pypi\/simple<\/a><\/p>\n<h2>\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u5e93\uff08\u5982\u679c\u9700\u8981\uff09<\/h2>\n<p>pip install --upgrade pip<br \/>\nc:\\opt\\anaconda3\\envs\\py3813\\python.exe -m pip install --upgrade pip<br \/>\npip install requests mysqlpy paramiko ipython numpy scipy opencv-python sanic sanic_cors<\/p>\n<h2>\u9000\u51fa\u73af\u5883<\/h2>\n<p>conda deactivate<\/p>\n<h2>\u5220\u9664\u73af\u5883<\/h2>\n<p>conda remove -n env_name --all<\/p>\n<h2>\u5220\u9664\u5355\u4e2a\u955c\u50cfURL<\/h2>\n<p>conda config --remove channels your_url #\u4f60\u60f3\u79fb\u9664\u7684\u6307\u5b9a\u955c\u50cf\u8def\u5f84<\/p>\n<h2>\u6062\u590d\u9ed8\u8ba4\u7684\u955c\u50cf\u6e90<\/h2>\n<p>conda config --remove-key channels<\/p>\n<h2>conda\u641c\u7d22\u5305<\/h2>\n<p>conda search python | grep 3.8.13<\/p>\n<h1>\u5e38\u89c1\u95ee\u9898FAQ<\/h1>\n<h2>pip\u5347\u7ea7\u62a5\u9519 ValueError: check_hostname requires server_hostname<\/h2>\n<p>\u5173\u95ed\u4ee3\u7406\u89e3\u51b3<\/p>\n<h2>pip\u5347\u7ea7\u62a5\u9519 ERROR: Could not install packages due to an OSError: [WinError 5] \u62d2\u7edd\u8bbf\u95ee<\/h2>\n<p>\u4f7f\u7528\u7ba1\u7406\u5458\u7ec8\u7aef\u8fdb\u884c\u6267\u884c\uff08win+R\u8fdb\u5165\u9ed1\u7a97\u53e3\uff09\uff1apython -m pip install --upgrade pip<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5Anaconda\u8fc7\u7a0b \u4e0b\u8f7dwin10\u5bf9\u5e94\u7684Anaconda\u5b89\u88c5\u5305 \u4e0b\u8f7d\u5730\u5740 https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/ \u4f7f\u7528gitbash\u91cc\u7684wget\u4e0b\u8f7d wget -c -P . https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/archive\/Anaconda3-2022.05-Windows-x86_64.exe \u5b89\u88c5Anaconda \u6309\u90e8\u5c31\u73ed\u5b89\u88c5\u5373\u53ef\uff0c\u8fc7\u7a0b\u6709\u70b9\u6162\u3002 \u6dfb\u52a0\u73af\u5883\u53d8\u91cf path\u91cc\u6dfb\u52a0\u5982\u4e0b2\u4e2a\u53d8\u91cf\uff08\u5047\u8bbe\u5b89\u88c5\u8def\u5f84\u662fc:\\opt\\anaconda3\uff09\uff0c c:\\opt\\anaconda3 c:\\opt\\anaconda3\\Scripts \u914d\u7f6e\u6e90\uff08\u6b64\u5904\u5f88\u591a\u5e16\u5b50\u535a\u5ba2\u90fd\u5f88\u5751\uff0c\u6ca1\u8bf4\u5230\u70b9\u5b50\u4e0a\uff09 \u53c2\u8003\u4e00\u4e2a\u8001\u54e5\u7684\u5e16\u5b50 https:\/\/www.cnblogs.com\/tianlang25\/p\/12433025.html \u8fdb\u5165C:\\Users\\\u4f60\u7684\u7528\u6237\uff0c\u5199\u5165\u4e00\u4e0b\u5185\u5bb9\u5230.condarc\u5e76\u4fdd\u5b58\uff0c ssl_verify: true show_channel_urls: true channels: &#8211; http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/free\/win-64 &#8211; http:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/main\/win-64 \u5347\u7ea7Anaconda \u6ce8\u610f\u5982\u679c\u7535\u8111\u5f00\u4e86\u4ee3\u7406\uff0c\u52a1\u5fc5\u5148\u5173\u95ed\u4ee3\u7406\u3002 conda upgrade &#8211;all -y Anaconda\u4f7f\u7528 \u67e5\u770b\u73af\u5883 conda env list \u521b\u5efa\u73af\u5883 conda create -n py3813 python=3.8.13 -y \u6fc0\u6d3b\u73af\u5883 conda init \u91cd\u542f\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef conda activate py3813 \u6bcf\u4e2a\u73af\u5883\u90fd\u662f\u72ec\u7acb\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,10],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/1548"}],"collection":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1548"}],"version-history":[{"count":11,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/1548\/revisions"}],"predecessor-version":[{"id":1663,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/1548\/revisions\/1663"}],"wp:attachment":[{"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}