{"id":25398,"date":"2025-04-19T12:31:42","date_gmt":"2025-04-19T04:31:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/25398.html"},"modified":"2025-04-19T12:31:42","modified_gmt":"2025-04-19T04:31:42","slug":"linux%e8%bf%9c%e7%a8%8b%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%80%8e%e4%b9%88%e5%88%9b%e5%bb%ba%e7%8e%af%e5%a2%83%ef%bc%9f%e6%80%8e%e4%b9%88%e6%8a%8a%e5%b7%b2%e6%9c%89%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/25398.html","title":{"rendered":"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f"},"content":{"rendered":"<p id=\"uc9cffd0d\">\u642d\u5efa\u670d\u52a1\u5668\u7684\u73af\u5883\u5206\u4e3a\u4e24\u79cd&#xff0c;\u56e0\u4e3a\u6211\u4eec\u7684\u670d\u52a1\u5668\u90fd\u662f\u5b89\u88c5\u4e86anaconda\u7684&#xff0c;\u6240\u4ee5\u4e0b\u9762\u662f\u57fa\u4e8e\u5b89\u88c5\u4e86<span style=\"background-color:#ffd900\">anaconda<\/span><\/p>\n<h5 id=\"fvace\">\u4e00\u3001\u4e4b\u524d\u7528\u8fc7linux\u670d\u52a1\u5668&#xff0c;\u73b0\u5728\u8981\u4f7f\u7528\u65b0\u7684\u670d\u52a1\u5668&#xff0c;\u8fd9\u6837\u7684\u8bdd\u53ef\u4ee5\u5c06\u4e4b\u524d\u7684\u73af\u5883\u8f6c\u79fb\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a<\/h5>\n<p id=\"u3349df17\">\u5206\u4e3a\u4e24\u79cd\u60c5\u51b5<\/p>\n<h6 id=\"EnvQ4\">1\u3001\u82e5\u65b0\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u8fde\u63a5\u5916\u7f51&#xff1a;\u53ef\u4ee5\u4f7f\u7528conda export\u5bfc\u51fa\u6574\u4e2a\u73af\u5883\u5230\u4e00\u4e2ayaml\u6587\u4ef6&#xff0c;\u7136\u540e\u5728\u65b0\u670d\u52a1\u5668\u5b89\u88c5\u5373\u53ef&#xff08;\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u5355&#xff0c;\u5982\u679c\u6ca1\u6709\u8054\u7f51\u4f46\u662f\u60f3\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406&#xff0c;\u4e5f\u53ef\u4ee5\u5b9e\u73b0&#xff09;<\/h6>\n<p id=\"u29a8dccc\"><span style=\"background-color:#a2e043\">\u8bbe\u7f6e\u4ee3\u7406\u53ef\u4ee5\u53c2\u8003&#xff1a;<\/span>\u670d\u52a1\u5668\u6ca1\u6709\u8fde\u63a5\u7f51\u7edc\u600e\u4e48\u914d\u7f6e\u73af\u5883\u4e0b\u8f7d\u5e93\u548c\u5305-CSDN\u535a\u5ba2<\/p>\n<h6 id=\"X2VSi\">2\u3001\u82e5\u662f\u65b0\u7684\u670d\u52a1\u5668\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51&#xff0c;\u5219\u9700\u8981\u6211\u4eec\u4f7f\u7528conda pack\u624b\u52a8\u6253\u5305\u8fc1\u79fb\u5230\u65b0\u7684\u670d\u52a1\u5668&#xff08;\u8fd9\u79cd\u65b9\u6cd5\u6709\u7f3a\u70b9\u5c31\u662f\u5982\u679c\u4f60\u539f\u6765\u7684\u73af\u5883\u6709\u4f7f\u7528\u8fc7pip\u6307\u4ee4\u5b89\u88c5\u7684\u5c31\u4f1a\u51b2\u7a81&#xff09;<\/h6>\n<h5 id=\"A0WK6\">\u4e8c\u3001\u4e4b\u524d\u6ca1\u6709\u4f7f\u7528\u8fc7linux\u670d\u52a1\u5668\u9700\u8981\u81ea\u5df1\u521b\u5efa\u65b0\u7684\u73af\u5883<\/h5>\n<p id=\"ucb3f4dd2\"><span style=\"background-color:#ffd900\">\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u5f00\u59cb\u4e00\u8d77\u914d\u7f6e\u5427<\/span><\/p>\n<h3 id=\"XAoAG\">\u4e00\u3001\u6253\u5305\u73af\u5883\u5230\u65b0\u670d\u52a1\u5668<\/h3>\n<p id=\"u32ce180a\">\u524d\u671f\u51c6\u5907\u5de5\u4f5c<\/p>\n<p id=\"u411f5a55\">\u67e5\u770b\u65e7\u670d\u52a1\u5668\u6709\u54ea\u4e9b\u73af\u5883&#xff0c;\u767b\u5f55ssh\u7ec8\u7aef&#xff0c;\u7136\u540e\u4f7f\u7528\u4e0b\u5217\u547d\u4ee4\u5373\u53ef\u67e5\u770b&#xff0c;\u81ea\u5df1\u7684\u8d26\u53f7\u4e0b\u7684\u73af\u5883\u6709\u54ea\u4e9b<\/p>\n<p>conda env list <\/p>\n<p id=\"u79fd84f7\">\u6216\u8005<\/p>\n<p>conda info &#8211;envs <\/p>\n<p id=\"u0de4a15e\">\u8fd9\u4e24\u4e2a\u90fd\u53ef\u4ee5&#xff0c;\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7684\u8f93\u51fa<\/p>\n<p id=\"u073c605f\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"167\" id=\"u10f83760\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043140-6803272cbde21.png\" width=\"803\" \/><\/p>\n<p id=\"ua6bdae53\">* \u7b26\u53f7\u8868\u793a\u5f53\u524d\u6fc0\u6d3b\u7684\u73af\u5883\u3002<\/p>\n<p id=\"u3358fcc0\">\u73af\u5883\u7684\u8def\u5f84\u4f1a\u663e\u793a\u5728\u6bcf\u4e2a\u73af\u5883\u7684\u540d\u79f0\u65c1\u8fb9&#xff0c;\u901a\u5e38\u4f4d\u4e8e anaconda3\/envs\/ \u76ee\u5f55\u4e0b\u3002<\/p>\n<h4 id=\"ugGry\">1.conda export\u65b9\u6cd5&#xff0c;\u5728\u65b0\u670d\u52a1\u5668\u8054\u7f51\u4e0b\u8f7d<\/h4>\n<p id=\"uddaad964\"><span style=\"background-color:#a2e043\">\u8bbe\u7f6e\u4ee3\u7406\u7ed9\u670d\u52a1\u5668\u8054\u7f51\u53c2\u8003&#xff1a;<\/span>\u670d\u52a1\u5668\u6ca1\u6709\u8fde\u63a5\u7f51\u7edc\u600e\u4e48\u914d\u7f6e\u73af\u5883\u4e0b\u8f7d\u5e93\u548c\u5305-CSDN\u535a\u5ba2<\/p>\n<p id=\"u65e0d22c\">\u4ee5\u6253\u5305TF\u73af\u5883\u4e3a\u4f8b&#xff1a;<\/p>\n<p id=\"u23ff9fe7\">\u7b2c\u4e00\u6b65&#xff1a;\u6fc0\u6d3b\u4f60\u8981\u5bfc\u51fa\u7684\u73af\u5883&#xff08;\u4ee5 TF \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>conda activate TF <\/p>\n<p id=\"u0b33a0f5\">\u7b2c\u4e8c\u6b65&#xff1a;\u5bfc\u51fa\u73af\u5883\u914d\u7f6e\u5230 YAML \u6587\u4ef6&#xff1a;<\/p>\n<p>conda env export &#8211;name TF &gt; TF_environment.yml <\/p>\n<p id=\"u1137d4b9\">\u7b2c\u4e09\u6b65&#xff1a; \u5c06\u5bfc\u51fa\u7684 TF_environment.yml\u4e0b\u8f7d\u5230\u672c\u5730\u7136\u540e\u4e0a\u4f20\u5230\u65b0\u670d\u52a1\u5668\u7684\u76ee\u6807\u8def\u5f84<\/p>\n<p id=\"u43f1c7ed\">\u7b2c\u56db\u6b65&#xff1a;\u5728\u65b0\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u865a\u62df\u73af\u5883&#xff1a;<\/p>\n<p>conda env create -f \/home\/01\/TF_environment.yml<br \/>\n## home\/01\u662f\u6211\u7684\u8d26\u53f7\u8def\u5f84 <\/p>\n<p id=\"ub036cb08\">\u8fd9\u4f1a\u6839\u636e TF_environment.yml \u4e2d\u7684\u914d\u7f6e\u521b\u5efa\u76f8\u540c\u7684 TF \u73af\u5883\u3002<\/p>\n<p id=\"u5d84c6f6\">\u7b2c\u4e94\u6b65&#xff1a;\u6fc0\u6d3b\u5e76\u9a8c\u8bc1\u73af\u5883<\/p>\n<p>conda activate TF<br \/>\nconda list <\/p>\n<h4 id=\"tr7vg\">2.conda pack\u6253\u5305\u73af\u5883&#xff0c;\u5728\u65b0\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u624b\u52a8\u914d\u7f6e<\/h4>\n<p id=\"uaf618cf2\">\u4ee5\u6253\u5305TF\u73af\u5883\u4e3a\u4f8b&#xff1a;<\/p>\n<p id=\"ue9f92ebf\">\u7b2c\u4e00\u6b65&#xff1a;\u6fc0\u6d3b\u73af\u5883<\/p>\n<p>conda activate TF <\/p>\n<p id=\"u287ac2b3\">\u7b2c\u4e8c\u6b65&#xff1a;\u6253\u5305\u73af\u5883<\/p>\n<p>conda pack -n TF -o TF_env.tar.gz <\/p>\n<p id=\"ud865c63d\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"83\" id=\"u3f1433b3\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043140-6803272ce31f1.png\" width=\"818\" \/><\/p>\n<p id=\"u1225a07d\">\u4f60\u5c31\u53ef\u4ee5\u5728\u4f60\u8d26\u53f7\u4e0b\u7684\u76ee\u5f55\u91cc\u627e\u5230\u4e86<\/p>\n<p id=\"uf3221f51\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"136\" id=\"u1005f03b\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043141-6803272d0f4e5.png\" width=\"287\" \/><\/p>\n<p id=\"u88cb0e25\">\u7b2c\u4e09\u6b65&#xff1a;\u5c06\u6253\u5305\u597d\u7684\u73af\u5883\u4e0b\u8f7d\u90fd\u672c\u5730&#xff0c;\u7136\u540e\u518d\u4e0a\u4f20\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u7684\u76ee\u6807\u8def\u5f84<\/p>\n<p id=\"ua0d5f492\">\u7b2c\u56db\u6b65&#xff1a;\u5728\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u5e76\u521b\u5efa\u73af\u5883<\/p>\n<p>cd \/home\/01 # home\/01\u662f\u6211\u7684\u8d26\u53f7\u8def\u5f84<br \/>\ntar -xvzf TF_env.tar.gz <\/p>\n<p id=\"u389dad9c\">\u7b2c\u4e94\u6b65&#xff1a;\u514b\u9686\u5e76\u521b\u5efa\u73af\u5883<\/p>\n<p>conda create &#8211;name TF &#8211;clone \/home\/01\/TF #\u6ce8\u610f\u66f4\u6539\u8def\u5f84 <\/p>\n<p id=\"uc04c00b7\">\u7b2c\u516d\u6b65\u5c31\u53ef\u4ee5\u6fc0\u6d3b\u73af\u5883\u4e86<\/p>\n<p>conda activate TF <\/p>\n<p id=\"uf45f83c9\">\u68c0\u67e5\u73af\u5883\u662f\u5426\u914d\u7f6e\u6210\u529f&#xff1a; \u786e\u8ba4\u73af\u5883\u662f\u5426\u6fc0\u6d3b\u6210\u529f&#xff1a;<\/p>\n<p>conda list <\/p>\n<p id=\"u1d13dbd6\"><span style=\"background-color:#ed7976\">\u6253\u5305\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef<\/span><\/p>\n<p id=\"uc7dcf2af\">\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"440\" id=\"uf88dc6f1\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043141-6803272d2b181.png\" width=\"757\" \/><\/p>\n<p id=\"u9f4ad773\">\u8fd9\u4e2a\u9519\u8bef\u8868\u660e conda \u73af\u5883\u4e2d\u7684\u4e00\u4e9b\u5305&#xff08;\u5982 six&#xff09;\u5b58\u5728\u51b2\u7a81\u6216\u88ab pip \u8986\u76d6&#xff0c;\u5bfc\u81f4\u73af\u5883\u7684\u4e0d\u4e00\u81f4\u3002\u5177\u4f53\u6765\u8bf4&#xff0c;conda \u548c pip \u5728\u540c\u4e00\u4e2a\u73af\u5883\u4e2d\u5b89\u88c5\u4e86\u76f8\u540c\u7684\u5305&#xff0c;\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898&#xff0c;\u7279\u522b\u662f\u5f53 pip \u5378\u8f7d\u6216\u8986\u76d6\u4e86\u7531 conda \u7ba1\u7406\u7684\u6587\u4ef6\u65f6<\/p>\n<p id=\"ubf95f478\">\u79fb\u9664 pip \u5b89\u88c5\u7684\u51b2\u7a81\u5305&#xff1a; \u5982\u679c\u53d1\u73b0\u67d0\u4e9b\u5305\u65e2\u901a\u8fc7 conda \u53c8\u901a\u8fc7 pip \u5b89\u88c5&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d pip \u5b89\u88c5\u7684\u5305&#xff0c;\u4ee5\u907f\u514d\u51b2\u7a81\u3002\u4f8b\u5982&#xff0c;\u5378\u8f7d six \u5305&#xff1a;<\/p>\n<p>pip uninstall six <\/p>\n<p id=\"u818007cb\">\u91cd\u65b0\u5b89\u88c5\u51b2\u7a81\u5305&#xff1a; \u5378\u8f7d pip \u5b89\u88c5\u7684\u5305\u540e&#xff0c;\u4f60\u53ef\u4ee5\u786e\u4fdd\u901a\u8fc7 conda \u5b89\u88c5\u6240\u9700\u7684\u5305\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p>conda install six <\/p>\n<p id=\"u4746b71e\">\u89e3\u51b3\u5305\u51b2\u7a81\u540e\u91cd\u65b0\u6253\u5305<\/p>\n<p>conda pack -n TF -o TF_env.tar.gz <\/p>\n<h6 id=\"r9o1n\">\u5c0ftips:\u5982\u679c\u4f60\u9700\u8981\u4f7f\u7528jupyter \u90a3\u4e48\u9700\u8981\u786e\u4fdd\u6bcf\u4e2a\u73af\u5883\u4e2d\u90fd\u521b\u5efa\u4e86\u5185\u6838&#xff0c;\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728jupyter\u91cc\u8fdb\u884c\u9009\u62e9\u4e86<\/h6>\n<ul>\n<li id=\"ue1cd1ed3\">\u6fc0\u6d3b\u4f60\u7684 PyTorch \u73af\u5883&#xff1a; \u9996\u5148&#xff0c;\u6fc0\u6d3b\u4f60\u60f3\u8981\u4f7f\u7528\u7684 PyTorch \u73af\u5883&#xff1a;<\/li>\n<\/ul>\n<p>conda activate pytorch <\/p>\n<ul>\n<li id=\"u3995d972\">\u5b89\u88c5 ipykernel&#xff1a; \u5728\u6fc0\u6d3b\u7684 pytorch \u73af\u5883\u4e2d&#xff0c;\u5b89\u88c5 ipykernel&#xff0c;\u8fd9\u662f Jupyter \u7684\u5185\u6838\u652f\u6301&#xff1a;<\/li>\n<\/ul>\n<p>conda install ipykernel <\/p>\n<ul>\n<li id=\"uf8eb6032\">\u6dfb\u52a0 PyTorch \u73af\u5883\u4e3a Jupyter \u5185\u6838&#xff1a; \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06 pytorch \u73af\u5883\u6dfb\u52a0\u4e3a Jupyter \u5185\u6838&#xff1a;<\/li>\n<\/ul>\n<p>python -m ipykernel install &#8211;user &#8211;name pytorch &#8211;display-name &#034;Python (PyTorch)&#034; <\/p>\n<ul>\n<li id=\"u06fae359\">&#8211;name pytorch \u662f\u4e3a\u5185\u6838\u6307\u5b9a\u4e00\u4e2a\u540d\u79f0\u3002<\/li>\n<li id=\"u1b2d5fa4\">&#8211;display-name &#034;Python (PyTorch)&#034; \u662f Jupyter \u4e2d\u663e\u793a\u7684\u540d\u79f0&#xff0c;\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4fee\u6539\u3002<\/li>\n<li id=\"u7b62fa69\">\u6309\u7167\u8fd9\u4e2a\u6b65\u9aa4\u7ed9\u5176\u4ed6\u73af\u5883\u90fd\u521b\u5efa\u597d\u5c31\u53ef\u4ee5\u5728jupyter\u91cc\u9009\u62e9\u4e86<\/li>\n<li id=\"u721e3c87\">\u542f\u52a8 Jupyter&#xff1a; \u6fc0\u6d3b\u597d\u73af\u5883\u5e76\u5b89\u88c5\u597d\u5185\u6838\u540e&#xff0c;\u53ef\u4ee5\u542f\u52a8 Jupyter Notebook&#xff1a;<\/li>\n<\/ul>\n<h3 id=\"ciLdn\">\u4e8c\u3001\u521b\u5efa\u65b0\u7684\u73af\u5883<\/h3>\n<h4 id=\"e8e3c417\">\u521b\u5efa\u4e00\u4e2a\u65b0\u73af\u5883<\/h4>\n<p id=\"ua9af1c0e\">\u63a5\u4e0b\u6765&#xff0c;\u521b\u5efa\u4e00\u4e2a\u65b0\u7684conda\u73af\u5883&#xff0c;\u5e76\u6fc0\u6d3b\u5b83\u3002\u4f60\u53ef\u4ee5\u547d\u540d\u4e3apytorch&#xff0c;\u5e76\u6307\u5b9aPython\u7248\u672c\u4e3a3.9&#xff1a;<\/p>\n<p>conda create -n pytorch python&#061;3.9<br \/>\nconda activate pytorch <\/p>\n<h4 id=\"3ce94d83\">\u6fc0\u6d3b\u65b0\u73af\u5883<\/h4>\n<p id=\"udc8a7fcc\">\u6fc0\u6d3b\u65b0\u73af\u5883\u65f6&#xff1a;<\/p>\n<p>conda activate pytorch <\/p>\n<h4 id=\"250a51a1\">\u5b89\u88c5\u4f9d\u8d56<\/h4>\n<p id=\"u419c5657\">\u63a5\u4e0b\u6765\u6309\u7167\u4e4b\u524d\u7684\u6b65\u9aa4\u5b89\u88c5PyTorch\u53ca\u5176\u4ed6\u4f9d\u8d56\u9879&#xff1a;<\/p>\n<p>python3 -m pip install torch&#061;&#061;1.12.1&#043;cu116 torchvision&#061;&#061;0.13.1&#043;cu116 -f https:\/\/download.pytorch.org\/whl\/torch_stable.html<br \/>\npython3 -m pip install pytorch_lightning&#061;&#061;1.6.4 <\/p>\n<p id=\"uf7bb47dd\">\u7136\u540e\u7ee7\u7eed\u5b89\u88c5\u4f60\u9700\u8981\u7684\u5305\u5c31\u53ef\u4ee5&#xff0c;\u7136\u540e\u5c31\u53ef\u4ee5\u8fd0\u884c\u5566<\/p>\n<p id=\"u94f69cee\">\u5b8c\u6210\u914d\u7f6e&#xff01;&#xff01;&#xff01;<\/p>\n<p id=\"ufea8bae0\">\u5982\u679c\u9700\u8981\u4f7f\u7528jupyter\u7684\u8bdd\u8bb0\u5f97\u5b89\u88c5 ipykernel&#xff0c;\u5e76\u6dfb\u52a0 PyTorch \u73af\u5883\u4e3a Jupyter \u5185\u6838<\/p>\n<p id=\"u1dbf2977\">\n<p id=\"uff00c55b\">\n<p id=\"u9fca510f\">\n<p id=\"u3d3daa02\">\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf34\u6b21\u3002\u200b1\u3001\u82e5\u65b0\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u8fde\u63a5\u5916\u7f51\uff1a\u53ef\u4ee5\u4f7f\u7528conda export\u5bfc\u51fa\u6574\u4e2a\u73af\u5883\u5230\u4e00\u4e2ayaml\u6587\u4ef6\uff0c\u7136\u540e\u5728\u65b0\u670d\u52a1\u5668\u5b89\u88c5\u5373\u53ef\uff08\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u5355\uff0c\u5982\u679c\u6ca1\u6709\u8054\u7f51\u4f46\u662f\u60f3\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\uff092\u3001\u82e5\u662f\u65b0\u7684\u670d\u52a1\u5668\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u5219\u9700\u8981\u6211\u4eec\u4f7f\u7528conda pack\u624b\u52a8\u6253\u5305\u8fc1\u79fb\u5230\u65b0\u7684\u670d\u52a1\u5668\uff08\u8fd9\u79cd\u65b9\u6cd5\u6709\u7f3a\u70b9\u5c31\u662f\u5982\u679c\u4f60\u539f\u6765\u7684\u73af\u5883\u6709\u4f7f\u7528\u8fc7pip\u6307\u4ee4\u5b89\u88c5\u7684\u5c31\u4f1a\u51b2\u7a81\uff09\u4e8c\u3001\u4e4b\u524d\u6ca1\u6709\u4f7f\u7528\u8fc7linux\u670d\u52a1\u5668\u9700\u8981\u81ea\u5df1\u521b\u5efa\u65b0\u7684\u73af\u5883_linux\u600e\u4e48\u628aannaconda\u865a\u62df\u73af\u5883\u6253\u5305\u53d1\u5230\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u4e0a<\/p>\n","protected":false},"author":2,"featured_media":25394,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[88,92,542,58,2002,216,81],"topic":[],"class_list":["post-25398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-conda","tag-github","tag-jupyter","tag-linux","tag-linuxvscode","tag-pip","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \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\/25398.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf34\u6b21\u3002\u200b1\u3001\u82e5\u65b0\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u8fde\u63a5\u5916\u7f51\uff1a\u53ef\u4ee5\u4f7f\u7528conda export\u5bfc\u51fa\u6574\u4e2a\u73af\u5883\u5230\u4e00\u4e2ayaml\u6587\u4ef6\uff0c\u7136\u540e\u5728\u65b0\u670d\u52a1\u5668\u5b89\u88c5\u5373\u53ef\uff08\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u5355\uff0c\u5982\u679c\u6ca1\u6709\u8054\u7f51\u4f46\u662f\u60f3\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\uff092\u3001\u82e5\u662f\u65b0\u7684\u670d\u52a1\u5668\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u5219\u9700\u8981\u6211\u4eec\u4f7f\u7528conda pack\u624b\u52a8\u6253\u5305\u8fc1\u79fb\u5230\u65b0\u7684\u670d\u52a1\u5668\uff08\u8fd9\u79cd\u65b9\u6cd5\u6709\u7f3a\u70b9\u5c31\u662f\u5982\u679c\u4f60\u539f\u6765\u7684\u73af\u5883\u6709\u4f7f\u7528\u8fc7pip\u6307\u4ee4\u5b89\u88c5\u7684\u5c31\u4f1a\u51b2\u7a81\uff09\u4e8c\u3001\u4e4b\u524d\u6ca1\u6709\u4f7f\u7528\u8fc7linux\u670d\u52a1\u5668\u9700\u8981\u81ea\u5df1\u521b\u5efa\u65b0\u7684\u73af\u5883_linux\u600e\u4e48\u628aannaconda\u865a\u62df\u73af\u5883\u6253\u5305\u53d1\u5230\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u4e0a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/25398.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-19T04:31:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043140-6803272cbde21.png\" \/>\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\/25398.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/25398.html\",\"name\":\"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T04:31:42+00:00\",\"dateModified\":\"2025-04-19T04:31:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/25398.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/25398.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/25398.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f\"}]},{\"@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":"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \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\/25398.html","og_locale":"zh_CN","og_type":"article","og_title":"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e28\u6b21\uff0c\u6536\u85cf34\u6b21\u3002\u200b1\u3001\u82e5\u65b0\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u8fde\u63a5\u5916\u7f51\uff1a\u53ef\u4ee5\u4f7f\u7528conda export\u5bfc\u51fa\u6574\u4e2a\u73af\u5883\u5230\u4e00\u4e2ayaml\u6587\u4ef6\uff0c\u7136\u540e\u5728\u65b0\u670d\u52a1\u5668\u5b89\u88c5\u5373\u53ef\uff08\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u5355\uff0c\u5982\u679c\u6ca1\u6709\u8054\u7f51\u4f46\u662f\u60f3\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\uff092\u3001\u82e5\u662f\u65b0\u7684\u670d\u52a1\u5668\u4e0d\u80fd\u8fde\u63a5\u5916\u7f51\uff0c\u5219\u9700\u8981\u6211\u4eec\u4f7f\u7528conda pack\u624b\u52a8\u6253\u5305\u8fc1\u79fb\u5230\u65b0\u7684\u670d\u52a1\u5668\uff08\u8fd9\u79cd\u65b9\u6cd5\u6709\u7f3a\u70b9\u5c31\u662f\u5982\u679c\u4f60\u539f\u6765\u7684\u73af\u5883\u6709\u4f7f\u7528\u8fc7pip\u6307\u4ee4\u5b89\u88c5\u7684\u5c31\u4f1a\u51b2\u7a81\uff09\u4e8c\u3001\u4e4b\u524d\u6ca1\u6709\u4f7f\u7528\u8fc7linux\u670d\u52a1\u5668\u9700\u8981\u81ea\u5df1\u521b\u5efa\u65b0\u7684\u73af\u5883_linux\u600e\u4e48\u628aannaconda\u865a\u62df\u73af\u5883\u6253\u5305\u53d1\u5230\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u4e0a","og_url":"https:\/\/www.wsisp.com\/helps\/25398.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T04:31:42+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419043140-6803272cbde21.png"}],"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\/25398.html","url":"https:\/\/www.wsisp.com\/helps\/25398.html","name":"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T04:31:42+00:00","dateModified":"2025-04-19T04:31:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/25398.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/25398.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/25398.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"linux\u8fdc\u7a0b\u670d\u52a1\u5668\u600e\u4e48\u521b\u5efa\u73af\u5883\uff1f\u600e\u4e48\u628a\u5df2\u6709\u670d\u52a1\u5668\u7684\u73af\u5883\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff1f"}]},{"@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\/25398","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=25398"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/25398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/25394"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=25398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=25398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=25398"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=25398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}