{"id":11442,"date":"2025-04-18T18:43:57","date_gmt":"2025-04-18T10:43:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/11442.html"},"modified":"2025-04-18T18:43:57","modified_gmt":"2025-04-18T10:43:57","slug":"conda%ef%bc%88%e5%a4%8d%e5%88%b6%e7%8e%af%e5%a2%83%ef%bc%89%e5%9c%a8%e4%b8%8d%e5%90%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e8%bf%81%e7%a7%bb%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/11442.html","title":{"rendered":"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5"},"content":{"rendered":"<\/p>\n<h4>conda\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5<\/h4>\n<ul>\n<li>conda \u590d\u5236\u73af\u5883&#xff08;\u76f8\u540c\u4e3b\u673a&#xff09;<\/li>\n<li>\n<ul>\n<li>\u4f7f\u7528\u547d\u4ee4\u884c\u514b\u9686\u73af\u5883<\/li>\n<\/ul>\n<\/li>\n<li>conda\u8fc1\u79fb\u73af\u5883<\/li>\n<li>\n<ul>\n<li>\u65b9\u6cd5\u4e00&#xff1a;\u590d\u5236pkgs\u548cenvs\u5305&#xff08;\u79bb\u7ebf\u73af\u5883&#xff09;<\/li>\n<li>\n<ul>\n<li>\u5feb\u901f\u6253\u5305\u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n<li>\u65b9\u6cd5\u4e8c&#xff1a;environment.yml\u6587\u4ef6&#xff08;\u76ee\u6807\u4e3b\u673a\u6709\u7f51&#xff09;<\/li>\n<li>\n<ul>\n<li>\u6848\u4f8benvironment.yml\u6587\u4ef6\u5185\u5bb9&#xff08;clip\u6587\u4ef6&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u53ef\u80fd\u4f1a\u7528\u5230\u7684\u547d\u4ee4<\/li>\n<li>\n<ul>\n<li>\u538b\u7f29\u547d\u4ee4\u548c\u89e3\u538b\u547d\u4ee4&#xff1a;<\/li>\n<li>\u590d\u5236\u547d\u4ee4<\/li>\n<\/ul>\n<\/li>\n<li>**\u53c2\u8003\u8d44\u6599**&#xff1a;<\/li>\n<\/ul>\n<h2>conda \u590d\u5236\u73af\u5883&#xff08;\u76f8\u540c\u4e3b\u673a&#xff09;<\/h2>\n<h3>\u4f7f\u7528\u547d\u4ee4\u884c\u514b\u9686\u73af\u5883<\/h3>\n<ul>\n<li>\u6253\u5f00Anaconda Prompt\u6216\u7ec8\u7aef\u3002<\/li>\n<li>\u8f93\u5165\u547d\u4ee4&#xff1a;conda create -n new_env &#8211;clone exist_env&#xff0c;\u5176\u4e2dnew_env\u662f\u65b0\u521b\u5efa\u7684\u865a\u62df\u73af\u5883\u540d\u79f0&#xff0c;exist_env\u662f\u88ab\u590d\u5236\u7684\u5df2\u5b58\u5728\u7684\u73af\u5883\u540d\u79f0\u3002<\/li>\n<li>\u8fd9\u6761\u547d\u4ee4\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3anew_env\u7684\u65b0\u73af\u5883&#xff0c;\u8be5\u73af\u5883\u5305\u542bexist_env\u4e2d\u7684\u6240\u6709\u5305\u548c\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h2>conda\u8fc1\u79fb\u73af\u5883<\/h2>\n<h3>\u65b9\u6cd5\u4e00&#xff1a;\u590d\u5236pkgs\u548cenvs\u5305&#xff08;\u79bb\u7ebf\u73af\u5883&#xff09;<\/h3>\n<li>\u5148\u628a\u6211\u4eec\u4f7f\u7528\u7684conda\u73af\u5883\u4e2d\u7684pkgs\u5305\u548cenvs\u5305\u5168\u90e8\u538b\u7f29&#xff0c;\u7136\u540e\u4e0b\u8f7d\u4e0b\u6765&#xff0c;\u4e0a\u4f20\u5230\u76f8\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u4e0a\u3002<\/li>\n<li>\u4e4b\u540e\u6211\u4eec\u628a\u8fd9\u4e9b\u73af\u5883\u7684pkgs\u5305\u548cenvs\u5305\u66ff\u6362\u6389\u539f\u670d\u52a1\u5668\u7684pkgs\u5305\u548cenvs\u5305<\/li>\n<li>\u4e4b\u540e\u76f4\u63a5\u8fd0\u884c&#xff1a;\n<ul>\n<li>\u67e5\u770b\u73af\u5883 conda env list<\/li>\n<li>\u6fc0\u6d3b\u73af\u5883 source activate my_env<\/li>\n<\/ul>\n<\/li>\n<p>\u5c31\u6210\u529f\u4e86\u3002<\/p>\n<h4>\u5feb\u901f\u6253\u5305\u65b9\u6cd5<\/h4>\n<p>\u4e0a\u9762\u65b9\u6cd5\u7684\u662f\u538b\u7f29envs\u5305\u548cpkgs\u5305\u4e4b\u540e\u89e3\u538b\u5230\u76ee\u6807\u4e3b\u673a&#xff0c;\u8fd9\u91cc\u53d1\u73b0\u8fd8\u6709\u4e00\u79cd\u5feb\u901f\u6253\u5305\u73af\u5883\u7684\u65b9\u6cd5&#xff1a;<\/p>\n<li>\u6253\u5305\u5f53\u524d\u73af\u5883 \u4f7f\u7528conda pack\u547d\u4ee4\u5c06\u73af\u5883\u6253\u5305\u4e3a\u4e00\u4e2a.tar.gz\u6587\u4ef6&#xff1a;<\/li>\n<p>conda pack <span class=\"token operator\">&#8211;<\/span>n my_env <span class=\"token operator\">&#8211;<\/span>o my_env<span class=\"token punctuation\">.<\/span>tar<span class=\"token punctuation\">.<\/span>gz<\/p>\n<p>\u5176\u4e2d&#xff0c;my_env \u662f\u4f60\u8981\u6253\u5305\u7684\u73af\u5883\u540d\u79f0&#xff0c;my_env.tar.gz \u662f\u751f\u6210\u7684\u538b\u7f29\u5305\u6587\u4ef6\u540d\u79f0\u3002<\/p>\n<li>\u5728\u76ee\u6807\u7535\u8111\u4e0a\u8fd8\u539f\u73af\u5883 \u5c06 my_env.tar.gz \u6587\u4ef6\u590d\u5236\u5230\u76ee\u6807\u7535\u8111&#xff0c;\u5728 anaconda\/env \u76ee\u5f55\u4e0b\u521b\u5efa\u76ee\u6807\u6587\u4ef6\u5939\u5e76\u89e3\u538b&#xff1a;<\/li>\n<p>mkdir <span class=\"token operator\">&#8211;<\/span>p my_env<br \/>\ntar <span class=\"token operator\">&#8211;<\/span>xzf my_env<span class=\"token punctuation\">.<\/span>tar<span class=\"token punctuation\">.<\/span>gz <span class=\"token operator\">&#8211;<\/span>C my_env<\/p>\n<p>\u8fd9\u4e00\u6b65\u5c06\u5728 my_env \u6587\u4ef6\u5939\u4e2d\u89e3\u538b\u73af\u5883\u6587\u4ef6\u3002 3. \u6fc0\u6d3b\u73af\u5883 \u89e3\u538b\u5b8c\u6210\u540e&#xff0c;\u76f4\u63a5\u6fc0\u6d3b\u73af\u5883\u5373\u53ef&#xff1a;<\/p>\n<p>source activate my_env<\/p>\n<p>\u8fd9\u6837&#xff0c;\u76ee\u6807\u7535\u8111\u4e0a\u5c06\u62e5\u6709\u4e0e\u539f\u7535\u8111\u4e00\u81f4\u7684 Conda \u73af\u5883&#xff0c;\u65e0\u9700\u91cd\u65b0\u5b89\u88c5\u5305\u3002<\/p>\n<h3>\u65b9\u6cd5\u4e8c&#xff1a;environment.yml\u6587\u4ef6&#xff08;\u76ee\u6807\u4e3b\u673a\u6709\u7f51&#xff09;<\/h3>\n<p>\u8981\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u590d\u73b0\u4f60\u5f53\u524d\u7684 Conda \u73af\u5883&#xff0c;\u53ef\u4ee5\u5bfc\u51fa\u5f53\u524d\u73af\u5883\u7684\u6bcf\u4e2a\u5305\u7684\u914d\u7f6e\u5e76\u5728\u65b0\u7535\u8111\u4e0a\u91cd\u65b0\u521b\u5efa\u8be5\u73af\u5883\u3002\u4ee5\u4e0b\u662f\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u5bfc\u51fa\u73af\u5883\u914d\u7f6e&#xff1a; \u5728\u4f60\u7684\u5f53\u524d\u73af\u5883\u4e2d&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5bfc\u51fa\u73af\u5883\u914d\u7f6e\u5230\u4e00\u4e2a yml \u6587\u4ef6&#xff1a;<\/li>\n<p>conda env export <span class=\"token operator\">&gt;<\/span> environment<span class=\"token punctuation\">.<\/span>yml<\/p>\n<p>\u8fd9\u4f1a\u751f\u6210\u4e00\u4e2aenvironment.yml\u6587\u4ef6&#xff0c;\u5176\u4e2d\u5305\u542b\u4e86\u73af\u5883\u4e2d\u6240\u6709\u5305\u53ca\u5176\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<li>\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u521b\u5efa\u73af\u5883&#xff1a; \u5c06environment.yml\u6587\u4ef6\u590d\u5236\u5230\u53e6\u4e00\u53f0\u7535\u8111\u4e0a&#xff0c;\u7136\u540e\u5728\u65b0\u7535\u8111\u4e0a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u73af\u5883&#xff1a;<\/li>\n<p>conda env create <span class=\"token operator\">&#8211;<\/span>f environment<span class=\"token punctuation\">.<\/span>yml<\/p>\n<li>\u6fc0\u6d3b\u65b0\u73af\u5883&#xff1a; \u521b\u5efa\u5b8c\u6210\u540e&#xff0c;\u6fc0\u6d3b\u8be5\u73af\u5883&#xff1a;<\/li>\n<p>conda activate your_environment_name<\/p>\n<p>\u5176\u4e2dyour_environment_name\u662fenvironment.yml\u6587\u4ef6\u4e2d\u6307\u5b9a\u7684\u73af\u5883\u540d\u79f0\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u53e6\u4e00\u53f0\u7535\u8111\u4e0a\u590d\u73b0\u76f8\u540c\u7684 Conda \u73af\u5883\u4e86\u3002<\/p>\n<h4>\u6848\u4f8benvironment.yml\u6587\u4ef6\u5185\u5bb9&#xff08;clip\u6587\u4ef6&#xff09;<\/h4>\n<p>name<span class=\"token punctuation\">:<\/span> clip<br \/>\nchannels<span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token operator\">&#8211;<\/span> https<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>mirrors<span class=\"token punctuation\">.<\/span>tuna<span class=\"token punctuation\">.<\/span>tsinghua<span class=\"token punctuation\">.<\/span>edu<span class=\"token punctuation\">.<\/span>cn<span class=\"token operator\">\/<\/span>anaconda<span class=\"token operator\">\/<\/span>pkgs<span class=\"token operator\">\/<\/span>main<br \/>\n  <span class=\"token operator\">&#8211;<\/span> https<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>mirrors<span class=\"token punctuation\">.<\/span>tuna<span class=\"token punctuation\">.<\/span>tsinghua<span class=\"token punctuation\">.<\/span>edu<span class=\"token punctuation\">.<\/span>cn<span class=\"token operator\">\/<\/span>anaconda<span class=\"token operator\">\/<\/span>pkgs<span class=\"token operator\">\/<\/span>main<span class=\"token operator\">\/<\/span><br \/>\n  <span class=\"token operator\">&#8211;<\/span> https<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>mirrors<span class=\"token punctuation\">.<\/span>tuna<span class=\"token punctuation\">.<\/span>tsinghua<span class=\"token punctuation\">.<\/span>edu<span class=\"token punctuation\">.<\/span>cn<span class=\"token operator\">\/<\/span>anaconda<span class=\"token operator\">\/<\/span>pkgs<span class=\"token operator\">\/<\/span>free<span class=\"token operator\">\/<\/span><br \/>\n  <span class=\"token operator\">&#8211;<\/span> https<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>mirrors<span class=\"token punctuation\">.<\/span>tuna<span class=\"token punctuation\">.<\/span>tsinghua<span class=\"token punctuation\">.<\/span>edu<span class=\"token punctuation\">.<\/span>cn<span class=\"token operator\">\/<\/span>anaconda<span class=\"token operator\">\/<\/span>cloud<span class=\"token operator\">\/<\/span>pytorch<span class=\"token operator\">\/<\/span><br \/>\n  <span class=\"token operator\">&#8211;<\/span> defaults<br \/>\ndependencies<span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token operator\">&#8211;<\/span> _libgcc_mutex<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.1<\/span><span class=\"token operator\">&#061;<\/span>main<br \/>\n  <span class=\"token operator\">&#8211;<\/span> _openmp_mutex<span class=\"token operator\">&#061;<\/span><span class=\"token number\">5.1<\/span><span class=\"token operator\">&#061;<\/span>1_gnu<br \/>\n  <span class=\"token operator\">&#8211;<\/span> ca<span class=\"token operator\">&#8211;<\/span>certificates<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2024.9<\/span><span class=\"token number\">.24<\/span><span class=\"token operator\">&#061;<\/span>h06a4308_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> certifi<span class=\"token operator\">&#061;<\/span><span class=\"token number\">2022.12<\/span><span class=\"token number\">.7<\/span><span class=\"token operator\">&#061;<\/span>py37h06a4308_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> ld_impl_linux<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">64<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">2.40<\/span><span class=\"token operator\">&#061;<\/span>h12ee557_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> libffi<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.4<\/span><span class=\"token number\">.4<\/span><span class=\"token operator\">&#061;<\/span>h6a678d5_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> libgcc<span class=\"token operator\">&#8211;<\/span>ng<span class=\"token operator\">&#061;<\/span><span class=\"token number\">11.2<\/span><span class=\"token number\">.0<\/span><span class=\"token operator\">&#061;<\/span>h1234567_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> libgomp<span class=\"token operator\">&#061;<\/span><span class=\"token number\">11.2<\/span><span class=\"token number\">.0<\/span><span class=\"token operator\">&#061;<\/span>h1234567_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> libstdcxx<span class=\"token operator\">&#8211;<\/span>ng<span class=\"token operator\">&#061;<\/span><span class=\"token number\">11.2<\/span><span class=\"token number\">.0<\/span><span class=\"token operator\">&#061;<\/span>h1234567_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> ncurses<span class=\"token operator\">&#061;<\/span><span class=\"token number\">6.4<\/span><span class=\"token operator\">&#061;<\/span>h6a678d5_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> openssl<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.1<\/span><span class=\"token punctuation\">.<\/span>1w<span class=\"token operator\">&#061;<\/span>h7f8727e_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> pip<span class=\"token operator\">&#061;<\/span><span class=\"token number\">22.3<\/span><span class=\"token number\">.1<\/span><span class=\"token operator\">&#061;<\/span>py37h06a4308_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> python<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.7<\/span><span class=\"token number\">.16<\/span><span class=\"token operator\">&#061;<\/span>h7a1cb2a_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> readline<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8.2<\/span><span class=\"token operator\">&#061;<\/span>h5eee18b_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> setuptools<span class=\"token operator\">&#061;<\/span><span class=\"token number\">65.6<\/span><span class=\"token number\">.3<\/span><span class=\"token operator\">&#061;<\/span>py37h06a4308_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> sqlite<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.45<\/span><span class=\"token number\">.3<\/span><span class=\"token operator\">&#061;<\/span>h5eee18b_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> tk<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8.6<\/span><span class=\"token number\">.14<\/span><span class=\"token operator\">&#061;<\/span>h39e8969_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> wheel<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0.38<\/span><span class=\"token number\">.4<\/span><span class=\"token operator\">&#061;<\/span>py37h06a4308_0<br \/>\n  <span class=\"token operator\">&#8211;<\/span> xz<span class=\"token operator\">&#061;<\/span><span class=\"token number\">5.4<\/span><span class=\"token number\">.6<\/span><span class=\"token operator\">&#061;<\/span>h5eee18b_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> zlib<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1.2<\/span><span class=\"token number\">.13<\/span><span class=\"token operator\">&#061;<\/span>h5eee18b_1<br \/>\n  <span class=\"token operator\">&#8211;<\/span> pip<span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> charset<span class=\"token operator\">&#8211;<\/span>normalizer<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">3.4<\/span><span class=\"token number\">.0<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> clip<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">1.0<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> ftfy<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">6.1<\/span><span class=\"token number\">.1<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> idna<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">3.10<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> numpy<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">1.21<\/span><span class=\"token number\">.6<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> nvidia<span class=\"token operator\">&#8211;<\/span>cublas<span class=\"token operator\">&#8211;<\/span>cu11<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">11.10<\/span><span class=\"token number\">.3<\/span><span class=\"token number\">.66<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> nvidia<span class=\"token operator\">&#8211;<\/span>cuda<span class=\"token operator\">&#8211;<\/span>nvrtc<span class=\"token operator\">&#8211;<\/span>cu11<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">11.7<\/span><span class=\"token number\">.99<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> nvidia<span class=\"token operator\">&#8211;<\/span>cuda<span class=\"token operator\">&#8211;<\/span>runtime<span class=\"token operator\">&#8211;<\/span>cu11<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">11.7<\/span><span class=\"token number\">.99<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> nvidia<span class=\"token operator\">&#8211;<\/span>cudnn<span class=\"token operator\">&#8211;<\/span>cu11<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">8.5<\/span><span class=\"token number\">.0<\/span><span class=\"token number\">.96<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> packaging<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">24.0<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> pillow<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">9.5<\/span><span class=\"token number\">.0<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> regex<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2024.4<\/span><span class=\"token number\">.16<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> requests<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.31<\/span><span class=\"token number\">.0<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> torch<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">1.13<\/span><span class=\"token number\">.1<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> torchvision<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.14<\/span><span class=\"token number\">.1<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> tqdm<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">4.66<\/span><span class=\"token number\">.5<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> typing<span class=\"token operator\">&#8211;<\/span>extensions<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">4.7<\/span><span class=\"token number\">.1<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> urllib3<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.0<\/span><span class=\"token number\">.7<\/span><br \/>\n    <span class=\"token operator\">&#8211;<\/span> wcwidth<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.2<\/span><span class=\"token number\">.13<\/span><br \/>\nprefix<span class=\"token punctuation\">:<\/span> <span class=\"token operator\">\/<\/span>root<span class=\"token operator\">\/<\/span>miniconda3<span class=\"token operator\">\/<\/span>envs<span class=\"token operator\">\/<\/span>clip<\/p>\n<h2>\u53ef\u80fd\u4f1a\u7528\u5230\u7684\u547d\u4ee4<\/h2>\n<h3>\u538b\u7f29\u547d\u4ee4\u548c\u89e3\u538b\u547d\u4ee4&#xff1a;<\/h3>\n<p>\u538b\u7f29\u547d\u4ee4&#xff1a; tar -cvf envs.tar envs<\/p>\n<p>tar -cvf pkgs.tar pkgs \u89e3\u538b\u547d\u4ee4&#xff1a; tar -xvf archive.tar<\/p>\n<h3>\u590d\u5236\u547d\u4ee4<\/h3>\n<p>cp envs.tar \/root\/anaconda3 cp pkgs.tar \/root\/anaconda3<\/p>\n<h2>\u53c2\u8003\u8d44\u6599&#xff1a;<\/h2>\n<p>https:\/\/blog.csdn.net\/weixin_43753824\/article\/details\/135402619 \u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u8fd9\u4e2a\u5e16\u5b50&#xff1a; https:\/\/zhuanlan.zhihu.com\/p\/602012820<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.3k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5c31\u6210\u529f\u4e86\u3002\u538b\u7f29\u547d\u4ee4\uff1a\u89e3\u538b\u547d\u4ee4\uff1a_conda\u590d\u5236\u73af\u5883<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[88,50,43,572],"topic":[],"class_list":["post-11442","post","type-post","status-publish","format-standard","hentry","category-server","tag-conda","tag-50","tag-43","tag-572"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/11442.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.3k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5c31\u6210\u529f\u4e86\u3002\u538b\u7f29\u547d\u4ee4\uff1a\u89e3\u538b\u547d\u4ee4\uff1a_conda\u590d\u5236\u73af\u5883\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/11442.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T10:43:57+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11442.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/11442.html\",\"name\":\"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:43:57+00:00\",\"dateModified\":\"2025-04-18T10:43:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/11442.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/11442.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11442.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/11442.html","og_locale":"zh_CN","og_type":"article","og_title":"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb3.3k\u6b21\uff0c\u70b9\u8d5e6\u6b21\uff0c\u6536\u85cf25\u6b21\u3002\u5c31\u6210\u529f\u4e86\u3002\u538b\u7f29\u547d\u4ee4\uff1a\u89e3\u538b\u547d\u4ee4\uff1a_conda\u590d\u5236\u73af\u5883","og_url":"https:\/\/www.wsisp.com\/helps\/11442.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:43:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/11442.html","url":"https:\/\/www.wsisp.com\/helps\/11442.html","name":"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:43:57+00:00","dateModified":"2025-04-18T10:43:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/11442.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/11442.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/11442.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"conda\uff08\u590d\u5236\u73af\u5883\uff09\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u8fc1\u79fb\u73af\u5883\u7684\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=11442"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11442\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=11442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=11442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=11442"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=11442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}