{"id":73352,"date":"2026-11-17T09:00:00","date_gmt":"2026-11-17T01:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=73352"},"modified":"2026-11-16T21:14:56","modified_gmt":"2026-11-16T13:14:56","slug":"conda-practical-series-01","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/conda-practical-series-01\/","title":{"rendered":"Conda \u4f7f\u7528\u6280\u5de7\uff08\u4e00\uff09\uff1a\u4ece\u96f6\u521b\u5efa\u72ec\u7acb\u73af\u5883\uff0c\u8dd1\u901a\u7b2c\u4e00\u4e2a\u5e8f\u5217\u7edf\u8ba1\u811a\u672c"},"content":{"rendered":"<div class=\"ysx-conda-series\" style=\"max-width:880px;margin:auto;font-size:17px;line-height:1.9;overflow-wrap:anywhere\">\n<p>\u521a\u5f00\u59cb\u5b66 Python \u6216\u751f\u7269\u4fe1\u606f\u5b66\u65f6\uff0c\u6700\u8ba9\u4eba\u56f0\u60d1\u7684\u5f80\u5f80\u4e0d\u662f\u4ee3\u7801\uff0c\u800c\u662f\u201c\u660e\u660e\u5df2\u7ecf\u5b89\u88c5\uff0c\u8fd0\u884c\u65f6\u5374\u8bf4\u627e\u4e0d\u5230\u201d\u3002\u540c\u4e00\u53f0\u7535\u8111\u4e0a\u53ef\u80fd\u6709\u7cfb\u7edf Python\u3001\u8f6f\u4ef6\u9644\u5e26\u7684 Python\uff0c\u8fd8\u6709 Conda \u73af\u5883\u91cc\u7684 Python\u3002\u5b89\u88c5\u8f6f\u4ef6\u548c\u8fd0\u884c\u7a0b\u5e8f\u5982\u679c\u7528\u4e86\u4e0d\u540c\u5165\u53e3\uff0c\u5c31\u50cf\u628a\u4e66\u653e\u8fdb\u7532\u623f\u95f4\uff0c\u5374\u5230\u4e59\u623f\u95f4\u5bfb\u627e\u3002\u672c\u7cfb\u5217\u7528\u4e00\u4e2a\u5f88\u5c0f\u7684\u5e8f\u5217\u7edf\u8ba1\u9879\u76ee\uff0c\u628a\u8fd9\u4ef6\u4e8b\u4ece\u5934\u8bb2\u6e05\u695a\u3002<\/p>\n<p>\u4e94\u7bc7\u7684\u5b66\u4e60\u8def\u7ebf\u662f\uff1a\u521b\u5efa\u72ec\u7acb\u73af\u5883\u3001\u6b63\u786e\u5b89\u88c5\u8f6f\u4ef6\u3001\u5b9a\u4f4d\u5e38\u89c1\u62a5\u9519\u3001\u4fdd\u5b58\u5e76\u91cd\u5efa\u73af\u5883\u3001\u8ba9\u811a\u672c\u7a33\u5b9a\u8fd0\u884c\u3002\u6bcf\u7bc7\u90fd\u80fd\u5355\u72ec\u9605\u8bfb\uff0c\u8fde\u7eed\u7ec3\u4e60\u6548\u679c\u66f4\u597d\u3002\u7b2c\u4e00\u7bc7\u5b8c\u6210\u540e\uff0c\u4f60\u5e94\u5f53\u80fd\u56de\u7b54\u4e09\u4e2a\u95ee\u9898\uff1a\u6211\u7684\u73af\u5883\u53eb\u4ec0\u4e48\uff0c\u5f53\u524d Python \u5728\u54ea\u91cc\uff0c\u5982\u4f55\u8bc1\u660e\u8fd9\u4e2a\u73af\u5883\u786e\u5b9e\u80fd\u8fd0\u884c\u6211\u7684\u4ee3\u7801\u3002<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" style=\"display:block;width:100%;height:auto;margin:24px 0\" alt=\"\u7b2c\u4e00\u7bc7\u793a\u610f\uff1a\u7ba1\u7406\u5de5\u5177\u3001\u9879\u76ee\u73af\u5883\u548c\u9879\u76ee\u6587\u4ef6\u5206\u522b\u5b58\u653e\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-figure-01.png?ssl=1\" \/><\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e00\u3001\u5148\u5206\u6e05\u4e09\u4e2a\u5bb9\u6613\u6df7\u5728\u4e00\u8d77\u7684\u540d\u5b57<\/h2>\n<p>Conda \u662f\u7ba1\u7406\u8f6f\u4ef6\u5305\u548c\u8fd0\u884c\u73af\u5883\u7684\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u7528\u5b83\u5b89\u88c5 Python\uff0c\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5f88\u591a\u5e26\u6709\u5e95\u5c42\u4f9d\u8d56\u7684\u8f6f\u4ef6\u3002Miniforge\u3001Miniconda \u7b49\u5219\u662f\u53d6\u5f97 Conda \u7684\u4e0d\u540c\u5b89\u88c5\u53d1\u884c\u65b9\u5f0f\u3002\u73af\u5883\u662f\u4f60\u540e\u6765\u521b\u5efa\u7684\u4e00\u4e2a\u4e2a\u72ec\u7acb\u8f6f\u4ef6\u96c6\u5408\uff0c\u73af\u5883\u540d\u79f0\u7531\u4f60\u81ea\u5df1\u51b3\u5b9a\u3002\u4e0d\u8981\u628a\u201c\u6211\u5b89\u88c5\u4e86\u67d0\u4e2a\u53d1\u884c\u7248\u201d\u548c\u201c\u6211\u7684\u5206\u6790\u9879\u76ee\u5df2\u914d\u7f6e\u5b8c\u6210\u201d\u5f53\u6210\u540c\u4e00\u4ef6\u4e8b\u3002<\/p>\n<p>\u672c\u6587\u9009\u62e9 Miniforge \u4f5c\u4e3a\u65b0\u7535\u8111\u7684\u5b89\u88c5\u5165\u53e3\uff0c\u662f\u4e3a\u4e86\u8ba9\u7cfb\u5217\u793a\u4f8b\u4f7f\u7528\u540c\u4e00\u4e2a\u8d77\u70b9\uff1b\u5df2\u6709\u6b63\u5e38\u8fd0\u884c\u7684 Conda \u4e0d\u9700\u8981\u4e3a\u4e86\u7ec3\u4e60\u518d\u88c5\u4e00\u5957\u3002\u5177\u4f53\u5e73\u53f0\u5b89\u88c5\u6587\u4ef6\u4ee5 <a href=\"https:\/\/github.com\/conda-forge\/miniforge\">Miniforge \u5b98\u65b9\u9875\u9762<\/a>\u4e3a\u51c6\uff0c\u5148\u786e\u8ba4\u64cd\u4f5c\u7cfb\u7edf\u548c\u5904\u7406\u5668\u67b6\u6784\uff0c\u518d\u9009\u62e9\u5b89\u88c5\u6587\u4ef6\u3002\u82f9\u679c\u82af\u7247\u548c Intel \u82af\u7247\u4e0d\u80fd\u53ea\u770b\u7535\u8111\u54c1\u724c\uff0c\u670d\u52a1\u5668\u4e5f\u4e0d\u80fd\u53ea\u51ed\u201c\u90fd\u662f Linux\u201d\u5c31\u968f\u4fbf\u4e0b\u8f7d\u3002<\/p>\n<p>\u5df2\u7ecf\u5b89\u88c5\u7684\u8bfb\u8005\uff0c\u5148\u6253\u5f00\u7ec8\u7aef\u6267\u884c\u4e0b\u9762\u4e24\u884c\u3002Windows \u521d\u5b66\u8005\u4f18\u5148\u6253\u5f00\u5b89\u88c5\u5668\u63d0\u4f9b\u7684 Miniforge Prompt\uff1bLinux\u3001macOS \u4f7f\u7528\u81ea\u5df1\u7684\u7ec8\u7aef\u3002\u4ee3\u7801\u6846\u91cc\u7684\u547d\u4ee4\u9010\u884c\u6267\u884c\uff0c\u4e0d\u8981\u628a\u8bf4\u660e\u6587\u5b57\u4e00\u8d77\u590d\u5236\u8fdb\u53bb\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">conda --version\r\nconda info --envs\r\n<\/code><\/pre>\n<p>\u7b2c\u4e00\u884c\u663e\u793a Conda \u7684\u7248\u672c\uff0c\u7b2c\u4e8c\u884c\u5217\u51fa\u73af\u5883\u540d\u79f0\u4e0e\u4f4d\u7f6e\u3002\u8f93\u51fa\u4e2d\u7684\u661f\u53f7\u901a\u5e38\u8868\u793a\u5f53\u524d\u6d3b\u52a8\u73af\u5883\u3002\u82e5\u7b2c\u4e00\u884c\u5c31\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4\uff0c\u5e94\u5148\u89e3\u51b3\u7ec8\u7aef\u5982\u4f55\u627e\u5230 Conda\uff0c\u6682\u65f6\u4e0d\u8981\u8f93\u5165\u540e\u7eed\u5b89\u88c5\u547d\u4ee4\u3002\u5df2\u6709\u5b89\u88c5\u4f46\u666e\u901a\u7ec8\u7aef\u4e0d\u80fd\u4f7f\u7528\u65f6\uff0c\u8fdb\u5165\u5b89\u88c5\u5668\u63d0\u4f9b\u7684\u7ec8\u7aef\uff0c\u6216\u6309\u5b9e\u9645 shell \u521d\u59cb\u5316\uff1b\u5177\u4f53\u884c\u4e3a\u89c1 <a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/commands\/init.html\">conda init \u6587\u6863<\/a>\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\"># \u4ec5\u5728\u4f60\u4f7f\u7528 Bash \u4e14\u9700\u8981\u521d\u59cb\u5316\u65f6\u6267\u884c\r\nconda init bash\r\n<\/code><\/pre>\n<p>\u521d\u59cb\u5316\u4f1a\u4fee\u6539\u5bf9\u5e94 shell \u7684\u542f\u52a8\u914d\u7f6e\uff0c\u6267\u884c\u540e\u901a\u5e38\u9700\u8981\u5173\u95ed\u5e76\u91cd\u65b0\u6253\u5f00\u7ec8\u7aef\u3002\u4f7f\u7528 zsh \u6216 PowerShell \u7684\u8bfb\u8005\u5e94\u9009\u5bf9\u5e94\u7684 shell\uff0c\u4e0d\u8981\u7167\u6284 bash\u3002\u670d\u52a1\u5668\u4e0a\u5df2\u6709\u5171\u4eab\u914d\u7f6e\u65f6\uff0c\u5148\u7406\u89e3\u7ba1\u7406\u5458\u63d0\u4f9b\u7684\u767b\u5f55\u65b9\u5f0f\uff0c\u4e0d\u8981\u53cd\u590d\u8fd0\u884c\u521d\u59cb\u5316\uff0c\u628a\u591a\u4e2a\u5b89\u88c5\u76ee\u5f55\u53e0\u5728\u4e00\u8d77\u3002<\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e8c\u3001\u7ed9\u7ec3\u4e60\u9879\u76ee\u5efa\u7acb\u81ea\u5df1\u7684\u5de5\u5177\u7bb1<\/h2>\n<p>\u6211\u4eec\u628a\u73af\u5883\u547d\u540d\u4e3a <code>conda-lab<\/code>\uff0c\u9009\u62e9 Python 3.11 \u4f5c\u4e3a\u6559\u5b66\u7248\u672c\u3002\u8fd9\u91cc\u7684\u7248\u672c\u9009\u62e9\u662f\u4e3a\u4e86\u7edf\u4e00\u7ec3\u4e60\uff0c\u4e0d\u4ee3\u8868\u6240\u6709\u8f6f\u4ef6\u90fd\u5e94\u8be5\u4f7f\u7528\u8fd9\u4e00\u7248\u672c\u3002\u771f\u5b9e\u9879\u76ee\u5e94\u5148\u770b\u8f6f\u4ef6\u8981\u6c42\uff1b\u8001\u5de5\u5177\u53ef\u80fd\u9700\u8981\u66f4\u65e9\u7684 Python\uff0c\u65b0\u5de5\u5177\u53ef\u80fd\u5df2\u6709\u4e0d\u540c\u7684\u652f\u6301\u8303\u56f4\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">conda create -n conda-lab --override-channels -c conda-forge python=3.11\r\nconda activate conda-lab\r\npython --version\r\npython -c &quot;import sys; print(sys.executable)&quot;\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u547d\u4ee4\u4f1a\u5148\u7ed9\u51fa\u8ba1\u5212\uff0c\u663e\u793a\u9700\u8981\u5b89\u88c5\u7684\u8f6f\u4ef6\u548c\u4e0b\u8f7d\u91cf\uff0c\u786e\u8ba4\u540e\u624d\u7ee7\u7eed\u3002\u53c2\u6570 <code>-n<\/code> \u540e\u9762\u662f\u73af\u5883\u540d\uff0c<code>python=3.11<\/code> \u8868\u793a\u9650\u5b9a Python \u7684\u6b21\u7248\u672c\u7cfb\u5217\u3002\u6e20\u9053\u53c2\u6570\u6682\u65f6\u7406\u89e3\u4e3a\u201c\u8fd9\u6b21\u4ece\u660e\u786e\u7684\u8f6f\u4ef6\u4ed3\u5e93\u53d6\u5305\u201d\uff0c\u7b2c\u4e8c\u7bc7\u518d\u8be6\u7ec6\u62c6\u89e3\u3002\u547d\u4ee4\u548c\u9009\u9879\u4f9d\u636e <a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/commands\/create.html\">conda create \u6587\u6863<\/a>\u3002<\/p>\n<p>\u6fc0\u6d3b\u4ee5\u540e\uff0c\u547d\u4ee4\u884c\u524d\u9762\u901a\u5e38\u4f1a\u51fa\u73b0\u73af\u5883\u540d\uff0c\u4f46\u771f\u6b63\u503c\u5f97\u4fdd\u5b58\u7684\u8bc1\u636e\u662f <code>sys.executable<\/code> \u8f93\u51fa\u7684\u89e3\u91ca\u5668\u8def\u5f84\u3002\u5b83\u5e94\u6307\u5411\u521a\u521b\u5efa\u7684\u73af\u5883\uff0c\u800c\u4e0d\u662f\u7cfb\u7edf\u76ee\u5f55\u6216\u8005\u53e6\u4e00\u4e2a\u9879\u76ee\u3002\u4e0d\u540c\u5b89\u88c5\u4f4d\u7f6e\u4f1a\u4ea7\u751f\u4e0d\u540c\u8def\u5f84\uff0c\u6240\u4ee5\u4e0d\u8981\u62ff\u81ea\u5df1\u7684\u6574\u6bb5\u8def\u5f84\u4e0e\u622a\u56fe\u9010\u5b57\u6bd4\u8f83\uff1b\u6bd4\u8f83\u7684\u662f\u5b83\u662f\u5426\u5c5e\u4e8e\u76ee\u6807\u73af\u5883\u3002<\/p>\n<p>\u6709\u8bfb\u8005\u4f1a\u95ee\uff1a\u4e3a\u4ec0\u4e48\u4e0d\u628a\u6240\u6709\u4e1c\u897f\u88c5\u8fdb\u9ed8\u8ba4\u7684 base\uff1f\u56e0\u4e3a\u591a\u4e2a\u9879\u76ee\u5f80\u5f80\u9700\u8981\u4e0d\u540c\u7248\u672c\u3002\u4e00\u4e2a\u9879\u76ee\u5347\u7ea7\u4f9d\u8d56\uff0c\u53ef\u80fd\u5f71\u54cd\u53e6\u4e00\u4e2a\u9879\u76ee\u3002\u8ba9 base \u4e3b\u8981\u627f\u62c5\u7ba1\u7406\u5de5\u4f5c\uff0c\u8ba9\u9879\u76ee\u5728\u5404\u81ea\u73af\u5883\u91cc\u8fd0\u884c\uff0c\u540e\u7eed\u5b9a\u4f4d\u95ee\u9898\u4f1a\u6e05\u695a\u5f97\u591a\u3002\u73af\u5883\u9694\u79bb\u4e5f\u6709\u8fb9\u754c\uff1a\u5b83\u4e0d\u4f1a\u81ea\u52a8\u590d\u5236\u9879\u76ee\u6570\u636e\uff0c\u4e0d\u4f1a\u4ee3\u66ff\u64cd\u4f5c\u7cfb\u7edf\u6743\u9650\uff0c\u66f4\u4e0d\u4f1a\u66ff\u4f60\u4fdd\u5b58\u5206\u6790\u7ed3\u679c\u3002<\/p>\n<div style=\"overflow-x:auto\">\n<table style=\"min-width:560px;width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:12px;background:#e8f5f1;border:1px solid #c9ded7;text-align:left\">\u5bf9\u8c61<\/th>\n<th style=\"padding:12px;background:#e8f5f1;border:1px solid #c9ded7;text-align:left\">\u672c\u7cfb\u5217\u4f8b\u5b50<\/th>\n<th style=\"padding:12px;background:#e8f5f1;border:1px solid #c9ded7;text-align:left\">\u8d1f\u8d23\u4ec0\u4e48<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u7ba1\u7406\u5165\u53e3<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">conda \u547d\u4ee4<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u521b\u5efa\u3001\u67e5\u770b\u3001\u5b89\u88c5\u4e0e\u5bfc\u51fa\u73af\u5883<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u9879\u76ee\u73af\u5883<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">conda-lab<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u63d0\u4f9b\u672c\u9879\u76ee\u7684 Python \u548c\u4f9d\u8d56<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u9879\u76ee\u76ee\u5f55<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">conda-lab-project<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u4fdd\u5b58\u811a\u672c\u3001\u793a\u4f8b\u8f93\u5165\u4e0e\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u7ec8\u7aef\u6240\u5728\u4f4d\u7f6e<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u51b3\u5b9a\u76f8\u5bf9\u8def\u5f84\u4ece\u54ea\u91cc\u5bfb\u627e\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e09\u3001\u628a\u4ee3\u7801\u653e\u5728\u9879\u76ee\u76ee\u5f55\uff0c\u4e0d\u8981\u585e\u8fdb\u73af\u5883\u76ee\u5f55<\/h2>\n<p>\u73af\u5883\u76ee\u5f55\u662f\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u9879\u76ee\u76ee\u5f55\u662f\u5de5\u4f5c\u53f0\u3002\u4e8c\u8005\u5206\u5f00\u4ee5\u540e\uff0c\u91cd\u5efa\u73af\u5883\u4e0d\u4f1a\u8fde\u5e26\u4e22\u5931\u81ea\u5df1\u7684\u811a\u672c\u3002\u4e0b\u9762\u7528\u51e0\u884c\u7b80\u5355\u547d\u4ee4\u65b0\u5efa\u9879\u76ee\u76ee\u5f55\uff1b\u5982\u679c\u76ee\u5f55\u5df2\u7ecf\u5b58\u5728\uff0c\u76f4\u63a5\u8fdb\u5165\u5373\u53ef\uff0c\u4e0d\u8981\u4e3a\u4e86\u91cd\u65b0\u7ec3\u4e60\u800c\u5220\u9664\u5176\u4e2d\u7684\u6587\u4ef6\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">mkdir conda-lab-project\r\ncd conda-lab-project\r\n<\/code><\/pre>\n<p>\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u521b\u5efa <code>check_env.py<\/code>\uff0c\u4fdd\u5b58\u5230\u521a\u624d\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u5185\u5bb9\u5982\u4e0b\u3002Windows \u8981\u786e\u8ba4\u6587\u4ef6\u6ca1\u6709\u88ab\u81ea\u52a8\u4fdd\u5b58\u6210 <code>check_env.py.txt<\/code>\u3002\u811a\u672c\u53ea\u4f7f\u7528 Python \u81ea\u5e26\u529f\u80fd\uff0c\u6240\u4ee5\u8fd9\u4e00\u8282\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u751f\u4fe1\u8f6f\u4ef6\uff0c\u4e5f\u4e0d\u9700\u8981\u4e0b\u8f7d\u5b9e\u9a8c\u6570\u636e\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-python\">import sys\r\n\r\nsequence = &quot;ACGTTGCA&quot;\r\ngc_count = sequence.count(&quot;G&quot;) + sequence.count(&quot;C&quot;)\r\ngc_percent = gc_count \/ len(sequence) * 100\r\n\r\nprint(&quot;Python:&quot;, sys.version.split()[0])\r\nprint(&quot;Executable:&quot;, sys.executable)\r\nprint(&quot;Length:&quot;, len(sequence))\r\nprint(f&quot;GC: {gc_percent:.1f}%&quot;)\r\n<\/code><\/pre>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">python check_env.py\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u4f8b\u5b50\u6709\u610f\u9009\u4e86\u4e00\u6761\u80fd\u624b\u5de5\u68c0\u67e5\u7684\u5e8f\u5217\uff1a\u603b\u957f\u5ea6\u4e3a\u516b\uff0c\u5176\u4e2d G \u548c C \u4e00\u5171\u56db\u4e2a\uff0c\u56e0\u6b64\u957f\u5ea6\u5e94\u4e3a <code>8<\/code>\uff0cGC \u6bd4\u4f8b\u5e94\u4e3a <code>50.0%<\/code>\u3002\u524d\u4e24\u884c\u4f1a\u968f\u4f60\u7684 Python \u5c0f\u7248\u672c\u4e0e\u5b89\u88c5\u8def\u5f84\u53d8\u5316\uff0c\u540e\u4e24\u9879\u5219\u662f\u672c\u4f8b\u7684\u786e\u5b9a\u6027\u68c0\u67e5\u503c\u3002\u8fd9\u91cc\u4ec5\u7edf\u8ba1\u7ed9\u5b9a\u5b57\u7b26\u4e32\uff0c\u4e0d\u6d89\u53ca\u6d4b\u5e8f\u8d28\u63a7\u3001\u78b1\u57fa\u8d28\u91cf\u6216\u751f\u7269\u5b66\u63a8\u65ad\u3002<\/p>\n<p>\u8fd9\u79cd\u5c0f\u811a\u672c\u7684\u4f5c\u7528\u4e0d\u662f\u5c55\u793a\u590d\u6742\u7b97\u6cd5\uff0c\u800c\u662f\u628a\u201c\u7a0b\u5e8f\u627e\u5230\u4e86\u3001\u89e3\u91ca\u5668\u5bf9\u4e86\u3001\u8ba1\u7b97\u7ed3\u679c\u5bf9\u4e86\u201d\u8fde\u6210\u4e00\u6761\u8bc1\u636e\u94fe\u3002\u4ee5\u540e\u5b89\u88c5\u5927\u578b\u5206\u6790\u8f6f\u4ef6\uff0c\u4e5f\u5e94\u4fdd\u7559\u7c7b\u4f3c\u7684\u5c0f\u6837\u4f8b\u3002\u4ec5\u770b\u5230\u5b89\u88c5\u8fc7\u7a0b\u6700\u540e\u6ca1\u6709\u62a5\u9519\uff0c\u8fd8\u4e0d\u8db3\u4ee5\u8bc1\u660e\u8f6f\u4ef6\u9002\u5408\u5f53\u524d\u8f93\u5165\uff0c\u66f4\u4e0d\u8db3\u4ee5\u8bc1\u660e\u6574\u4e2a\u79d1\u7814\u6d41\u7a0b\u5df2\u7ecf\u53ef\u9760\u3002<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" style=\"display:block;width:100%;height:auto;margin:24px 0\" alt=\"\u7b2c\u4e00\u7bc7\u9a8c\u6536\u793a\u610f\uff1a\u770b\u73af\u5883\u3001\u770b\u89e3\u91ca\u5668\u3001\u8fd0\u884c\u811a\u672c\u3001\u6838\u5bf9\u8f93\u51fa\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-figure-02.png?ssl=1\" \/><\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u56db\u3001\u6fc0\u6d3b\u73af\u5883\u4e0e\u8fdb\u5165\u76ee\u5f55\u662f\u4e24\u4ef6\u4e8b<\/h2>\n<p><code>conda activate conda-lab<\/code> \u4e3b\u8981\u6539\u53d8\u5f53\u524d\u7ec8\u7aef\u4f7f\u7528\u8f6f\u4ef6\u7684\u65b9\u5f0f\uff0c<code>cd conda-lab-project<\/code> \u6539\u53d8\u5f53\u524d\u6240\u5728\u76ee\u5f55\u3002\u6fc0\u6d3b\u73af\u5883\u4e0d\u4f1a\u628a\u4f60\u9001\u8fdb\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u8fdb\u5165\u9879\u76ee\u6587\u4ef6\u5939\u4e5f\u4e0d\u4f1a\u81ea\u52a8\u9009\u62e9\u5bf9\u5e94 Python\u3002\u521d\u5b66\u8005\u9047\u5230\u201c\u627e\u4e0d\u5230\u811a\u672c\u201d\uff0c\u7ecf\u5e38\u628a\u8fd9\u4e24\u4e2a\u52a8\u4f5c\u6df7\u4e3a\u4e00\u8c08\u3002<\/p>\n<p>\u5982\u679c\u9519\u8bef\u91cc\u51fa\u73b0 <code>can't open file<\/code>\uff0c\u5148\u68c0\u67e5\u811a\u672c\u662f\u5426\u5728\u5f53\u524d\u76ee\u5f55\uff1b\u5982\u679c\u51fa\u73b0 <code>ModuleNotFoundError<\/code>\uff0c\u624d\u7ee7\u7eed\u68c0\u67e5\u8fd0\u884c\u73af\u5883\u53ca\u4f9d\u8d56\u3002\u4e24\u7c7b\u95ee\u9898\u7684\u5904\u7406\u65b9\u5411\u4e0d\u540c\u3002\u6587\u4ef6\u540d\u4e5f\u8981\u4ed4\u7ec6\u6838\u5bf9\uff0cLinux \u901a\u5e38\u533a\u5206\u5927\u5c0f\u5199\uff0c<code>Check_env.py<\/code> \u4e0e <code>check_env.py<\/code> \u4e0d\u5e94\u6df7\u7528\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">conda info --envs\r\npython -c &quot;from pathlib import Path; print(Path.cwd()); print(Path('check_env.py').exists())&quot;\r\n<\/code><\/pre>\n<p>\u7b2c\u4e8c\u884c\u4f1a\u6253\u5370\u5de5\u4f5c\u76ee\u5f55\uff0c\u5e76\u544a\u8bc9\u4f60\u8be5\u4f4d\u7f6e\u662f\u5426\u5b58\u5728\u811a\u672c\u3002\u770b\u5230 <code>False<\/code> \u65f6\uff0c\u8bf4\u660e\u4f60\u9996\u5148\u9700\u8981\u4fee\u6b63\u76ee\u5f55\u6216\u6587\u4ef6\u540d\uff0c\u91cd\u88c5 Python \u901a\u5e38\u6ca1\u6709\u5e2e\u52a9\u3002\u8fd9\u79cd\u5148\u7f29\u5c0f\u95ee\u9898\u8303\u56f4\u518d\u52a8\u624b\u7684\u4e60\u60ef\uff0c\u4f1a\u8d2f\u7a7f\u540e\u9762\u56db\u7bc7\u3002<\/p>\n<p>\u7ec3\u4e60\u5b8c\u6210\u540e\u53ef\u4ee5\u9000\u51fa\u73af\u5883\u3002\u9000\u51fa\u53ea\u6539\u53d8\u5f53\u524d\u7ec8\u7aef\u7684\u6d3b\u52a8\u72b6\u6001\uff0c\u4e0d\u4f1a\u5378\u8f7d\u5305\uff0c\u4e5f\u4e0d\u4f1a\u5220\u9664\u9879\u76ee\u76ee\u5f55\u3002\u4e0b\u6b21\u91cd\u65b0\u6253\u5f00\u7ec8\u7aef\u65f6\uff0c\u5e94\u91cd\u65b0\u786e\u8ba4\u5f53\u524d\u73af\u5883\uff0c\u518d\u8fd0\u884c\u9879\u76ee\u3002\u4e0d\u8981\u56e0\u4e3a\u6628\u5929\u5728\u4e00\u4e2a\u7a97\u53e3\u6fc0\u6d3b\u8fc7\uff0c\u5c31\u5047\u8bbe\u4eca\u5929\u6240\u6709\u7a97\u53e3\u90fd\u5df2\u7ecf\u6fc0\u6d3b\u3002<\/p>\n<pre style=\"max-width:100%;overflow-x:auto;padding:18px;background:#edf4f5;border-radius:10px;font-size:14px;line-height:1.65\"><code class=\"language-bash\">conda deactivate\r\nconda run -n conda-lab python check_env.py\r\n<\/code><\/pre>\n<p>\u6700\u540e\u4e00\u884c\u6f14\u793a\u4e0d\u624b\u52a8\u6fc0\u6d3b\u4e5f\u80fd\u6307\u5b9a\u73af\u5883\u8fd0\u884c\uff0c\u4f46\u4ecd\u8981\u6c42\u5f53\u524d\u76ee\u5f55\u80fd\u627e\u5230\u811a\u672c\u3002\u7b2c\u4e94\u7bc7\u4f1a\u628a\u8fd9\u4e2a\u529e\u6cd5\u7528\u4e8e\u81ea\u52a8\u5316\u8fd0\u884c\uff0c\u8ba9\u73af\u5883\u9009\u62e9\u76f4\u63a5\u5199\u5728\u542f\u52a8\u547d\u4ee4\u91cc\u3002\u6b64\u65f6\u53ea\u8981\u7406\u89e3\u5b83\u7684\u7528\u9014\u5373\u53ef\uff0c\u4e0d\u5fc5\u4e00\u4e0b\u5b50\u8bb0\u4f4f\u6240\u6709\u53c2\u6570\u3002<\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e94\u3001\u7b2c\u4e00\u5929\u7ec3\u4e60\u7684\u9a8c\u6536\u6807\u51c6<\/h2>\n<p>\u8bf7\u81ea\u5df1\u91cd\u65b0\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\uff0c\u4ece\u67e5\u770b\u73af\u5883\u5f00\u59cb\uff0c\u518d\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u5e76\u6267\u884c\u811a\u672c\u3002\u4f60\u5e94\u80fd\u8bf4\u51fa\u73af\u5883\u540d\u79f0\u3001\u9879\u76ee\u4f4d\u7f6e\u3001\u89e3\u91ca\u5668\u4f4d\u7f6e\u4ee5\u53ca\u90a3\u4e24\u4e2a\u786e\u5b9a\u8f93\u51fa\u3002\u5982\u679c\u4e2d\u9014\u8981\u4f9d\u8d56\u67d0\u4e2a\u6ca1\u6709\u8bb0\u5f55\u7684\u7a97\u53e3\u6216\u4e34\u65f6\u624b\u5de5\u64cd\u4f5c\uff0c\u8bf4\u660e\u6d41\u7a0b\u8fd8\u6ca1\u6709\u771f\u6b63\u6574\u7406\u6e05\u695a\uff0c\u503c\u5f97\u628a\u7f3a\u5931\u6b65\u9aa4\u8865\u8fdb\u9879\u76ee\u8bf4\u660e\u3002<\/p>\n<p>\u8fd8\u53ef\u4ee5\u628a\u5e8f\u5217\u6539\u6210 <code>GGCC<\/code> \u518d\u8fd0\u884c\uff0c\u6b64\u65f6\u957f\u5ea6\u5e94\u4e3a\u56db\uff0cGC \u6bd4\u4f8b\u5e94\u4e3a\u767e\u5206\u4e4b\u767e\u3002\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6b63\u5411\u6d4b\u8bd5\u3002\u968f\u540e\u6539\u56de\u539f\u59cb\u5e8f\u5217\uff0c\u4fdd\u7559\u6807\u51c6\u793a\u4f8b\uff0c\u907f\u514d\u7b2c\u4e8c\u5929\u63a5\u7740\u7ec3\u4e60\u65f6\u5fd8\u4e86\u81ea\u5df1\u66fe\u6539\u8fc7\u8f93\u5165\u3002\u4e0d\u8981\u628a\u7a7a\u5b57\u7b26\u4e32\u5f53\u4f5c\u672c\u811a\u672c\u652f\u6301\u7684\u8f93\u5165\uff0c\u56e0\u4e3a\u5206\u6bcd\u4e3a\u96f6\u4f1a\u62a5\u9519\uff1b\u540e\u7eed\u5199\u901a\u7528\u7a0b\u5e8f\u65f6\u9700\u8981\u663e\u5f0f\u68c0\u67e5\u8fd9\u79cd\u8fb9\u754c\u3002<\/p>\n<p>\u81f3\u6b64\u4f60\u5df2\u7ecf\u5177\u5907\u4e00\u4e2a\u53ef\u8fd0\u884c\u7684\u6700\u5c0f\u9879\u76ee\u3002\u4e0b\u4e00\u7bc7\u4f1a\u5728\u540c\u4e00\u4e2a\u73af\u5883\u91cc\u5b89\u88c5 Biopython\uff0c\u7528\u6807\u51c6\u5e8f\u5217\u6587\u4ef6\u66ff\u4ee3\u624b\u5de5\u5b57\u7b26\u4e32\uff0c\u5e76\u89e3\u91ca\u6e20\u9053\u3001\u7248\u672c\u548c pip \u7684\u5173\u7cfb\u3002\u9047\u5230\u73af\u5883\u90e8\u7f72\u56f0\u96be\u65f6\uff0c\u53ef\u4ee5\u6574\u7406\u64cd\u4f5c\u7cfb\u7edf\u3001\u73af\u5883\u540d\u3001\u8f6f\u4ef6\u7248\u672c\u548c\u5b8c\u6574\u9519\u8bef\uff0c\u518d<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\">\u8054\u7cfb\u4e91\u751f\u4fe1\u54a8\u8be2\u73af\u5883\u4e0e\u8d44\u6e90\u9700\u6c42<\/a>\uff0c\u8fd9\u4e9b\u4fe1\u606f\u6bd4\u5355\u72ec\u622a\u53d6\u6700\u540e\u4e00\u884c\u62a5\u9519\u66f4\u6709\u52a9\u4e8e\u5224\u65ad\u3002<\/p>\n<nav aria-label=\"Conda\u7cfb\u5217\u5bfc\u822a\" style=\"margin-top:36px;padding:20px;background:#eef8f4;border-radius:12px\">\n<h2>Conda \u4f7f\u7528\u6280\u5de7\u7cfb\u5217\u76ee\u5f55<\/h2>\n<p>\u5168\u7cfb\u5217\u6309\u5317\u4eac\u65f6\u95f4\u6bcf\u5929\u4e0a\u5348 9 \u70b9\u9646\u7eed\u5f00\u653e\u3002\u540e\u7eed\u7bc7\u7ae0\u8bf7\u5728\u6807\u6ce8\u65e5\u671f\u4e0a\u7ebf\u540e\u9605\u8bfb\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/?p=73352\">Conda \u4f7f\u7528\u6280\u5de7\uff08\u4e00\uff09\uff1a\u4ece\u96f6\u521b\u5efa\u72ec\u7acb\u73af\u5883\uff0c\u8dd1\u901a\u7b2c\u4e00\u4e2a\u5e8f\u5217\u7edf\u8ba1\u811a\u672c<\/a>\uff0811-17 09:00\uff09<\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/?p=73353\">Conda \u4f7f\u7528\u6280\u5de7\uff08\u4e8c\uff09\uff1a\u8f6f\u4ef6\u5e94\u8be5\u4ece\u54ea\u91cc\u88c5\uff1f\u5f04\u61c2\u6e20\u9053\u3001\u7248\u672c\u4e0e pip<\/a>\uff0811-18 09:00\uff09<\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/?p=73354\">Conda \u4f7f\u7528\u6280\u5de7\uff08\u4e09\uff09\uff1a\u88c5\u597d\u4e86\u8fd8\u662f\u62a5\u9519\uff1f\u6309\u987a\u5e8f\u89e3\u51b3\u73af\u5883\u3001\u4f9d\u8d56\u548c\u7f51\u7edc\u95ee\u9898<\/a>\uff0811-19 09:00\uff09<\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/?p=73355\">Conda \u4f7f\u7528\u6280\u5de7\uff08\u56db\uff09\uff1a\u73af\u5883\u914d\u597d\u540e\u600e\u4e48\u4fdd\u5b58\uff1f\u4ece environment.yml \u5230\u590d\u73b0\u9a8c\u6536<\/a>\uff0811-20 09:00\uff09<\/li>\n<li><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/?p=73356\">Conda \u4f7f\u7528\u6280\u5de7\uff08\u4e94\uff09\uff1a\u7ec8\u7aef\u80fd\u8dd1\uff0c\u811a\u672c\u4e5f\u8981\u80fd\u8dd1\u2014\u2014\u73af\u5883\u3001\u65e5\u5fd7\u4e0e\u65e5\u5e38\u7ef4\u62a4<\/a>\uff0811-21 09:00\uff09<\/li>\n<\/ol>\n<\/nav>\n<p><a href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-conda-lab-examples.zip\">\u4e0b\u8f7d\u5168\u7cfb\u5217\u7ec3\u4e60\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u73af\u5883\u6587\u4ef6<\/a>\uff08ZIP\uff1b\u542b\u64cd\u4f5c\u8bf4\u660e\u4e0e\u9884\u671f\u8f93\u51fa\uff09<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u5f00\u59cb\u5b66Python\u6216\u751f\u7269\u4fe1\u606f\u5b66\u65f6\uff0c\u6700\u8ba9\u4eba\u56f0\u60d1\u7684\u5f80\u5f80\u4e0d\u662f\u4ee3\u7801\uff0c\u800c\u662f\u201c\u660e\u660e\u5df2\u7ecf\u5b89\u88c5\uff0c\u8fd0\u884c\u65f6\u5374\u8bf4\u627e\u4e0d\u5230\u201d\u3002\u540c\u4e00\u53f0\u7535\u8111\u4e0a\u53ef\u80fd\u6709\u7cfb\u7edfPython\u3001\u8f6f\u4ef6\u9644\u5e26\u7684Python\uff0c\u8fd8\u6709Conda\u73af\u5883\u91cc\u7684Python\u3002\u5b89\u88c5\u8f6f\u4ef6\u548c\u8fd0\u884c\u7a0b\u5e8f\u5982\u679c\u7528\u4e86\u4e0d\u540c\u5165\u53e3\uff0c\u5c31\u50cf\u628a\u4e66\u653e\u8fdb\u7532\u623f\u95f4\uff0c\u5374\u5230\u4e59\u623f\u95f4\u5bfb\u627e\u3002\u672c\u7cfb\u5217\u7528\u4e00\u4e2a\u5f88\u5c0f\u7684\u5e8f\u5217\u7edf\u8ba1\u9879\u76ee<\/p>\n","protected":false},"author":1,"featured_media":73358,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[49,75],"tags":[1465,1466,1467,172],"class_list":["post-73352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-compute-environment","tag-conda","tag-1467","tag-172"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-figure-01.png?fit=1400%2C900&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=73352"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73352\/revisions"}],"predecessor-version":[{"id":73360,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73352\/revisions\/73360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/73358"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=73352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=73352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=73352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}