{"id":73353,"date":"2026-11-18T09:00:00","date_gmt":"2026-11-18T01:00:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=73353"},"modified":"2026-11-16T21:14:56","modified_gmt":"2026-11-16T13:14:56","slug":"conda-practical-series-02","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/conda-practical-series-02\/","title":{"rendered":"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"},"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>\u7b2c\u4e00\u7bc7\u5df2\u7ecf\u5efa\u7acb <code>conda-lab<\/code> \u73af\u5883\uff0c\u5e76\u8dd1\u901a\u4e86\u53ea\u4f9d\u8d56 Python \u81ea\u5e26\u529f\u80fd\u7684\u5e8f\u5217\u7edf\u8ba1\u811a\u672c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u628a\u624b\u5199\u5b57\u7b26\u4e32\u5347\u7ea7\u4e3a\u771f\u6b63\u7684 FASTA \u6587\u4ef6\uff0c\u5e76\u5b89\u88c5 Biopython \u8bfb\u53d6\u5b83\u3002\u8fd9\u4e2a\u5c0f\u53d8\u5316\u4f1a\u5f15\u51fa\u65b0\u624b\u6700\u5bb9\u6613\u6df7\u6dc6\u7684\u4e09\u4e2a\u95ee\u9898\uff1a\u8f6f\u4ef6\u5305\u4ece\u54ea\u91cc\u6765\uff0c\u7248\u672c\u8981\u6307\u5b9a\u5230\u591a\u7ec6\uff0c\u4e3a\u4ec0\u4e48 Conda \u4e0e pip \u4e0d\u80fd\u968f\u610f\u4ea4\u66ff\u4f7f\u7528\u3002<\/p>\n<p>\u672c\u6587\u4ecd\u7136\u4f7f\u7528\u540c\u4e00\u4e2a\u73af\u5883\u548c\u9879\u76ee\u76ee\u5f55\u3002\u672a\u8bfb\u7b2c\u4e00\u7bc7\u4e5f\u53ef\u4ee5\u8ddf\u7740\u505a\uff0c\u4f46\u8bf7\u5148\u786e\u8ba4 <code>conda --version<\/code> \u6709\u8f93\u51fa\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5305\u542b Python 3.11 \u7684\u72ec\u7acb\u73af\u5883\u3002\u6211\u4eec\u53ea\u505a\u4e24\u6761\u4eba\u5de5\u5e8f\u5217\u7684\u7edf\u8ba1\uff0c\u4e0d\u6d89\u53ca\u771f\u5b9e\u6837\u672c\u7ed3\u8bba\uff1b\u793a\u4f8b\u89c4\u6a21\u5f88\u5c0f\uff0c\u76ee\u7684\u662f\u628a\u5b89\u88c5\u548c\u9a8c\u8bc1\u7684\u6b65\u9aa4\u770b\u6e05\u695a\u3002<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" style=\"display:block;width:100%;height:auto;margin:24px 0\" alt=\"\u7b2c\u4e8c\u7bc7\u793a\u610f\uff1a\u660e\u786e\u76ee\u6807\u73af\u5883\u3001\u8f6f\u4ef6\u6e20\u9053\u4e0e\u7248\u672c\u8981\u6c42\u540e\u518d\u5b89\u88c5\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-figure-03.png?ssl=1\" \/><\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e00\u3001\u6e20\u9053\u50cf\u8f6f\u4ef6\u4ed3\u5e93\uff0c\u73af\u5883\u50cf\u6536\u8d27\u5730\u5740<\/h2>\n<p>\u5b89\u88c5\u8f6f\u4ef6\u65f6\uff0c\u73af\u5883\u51b3\u5b9a\u201c\u88c5\u5230\u54ea\u91cc\u201d\uff0c\u6e20\u9053\u51b3\u5b9a\u201c\u4ece\u54ea\u91cc\u53d6\u201d\u3002\u5305\u540d\u4e0e\u7248\u672c\u51b3\u5b9a\u201c\u8981\u4ec0\u4e48\u201d\u3002\u4e09\u4e2a\u7ef4\u5ea6\u7f3a\u4e00\u4e0d\u53ef\u3002\u53ea\u8bb0\u4f4f\u4e00\u53e5 <code>conda install<\/code>\uff0c\u5374\u6ca1\u6709\u786e\u8ba4\u5f53\u524d\u73af\u5883\u548c\u6765\u6e90\uff0c\u5bb9\u6613\u5728\u673a\u5668\u4e0a\u7559\u4e0b\u591a\u5957\u4e0d\u540c\u8f6f\u4ef6\uff0c\u7b49\u5230\u8fd0\u884c\u62a5\u9519\u65f6\u53c8\u4e0d\u77e5\u9053\u8be5\u68c0\u67e5\u54ea\u4e00\u5957\u3002<\/p>\n<p>\u5148\u68c0\u67e5\u73b0\u72b6\uff0c\u518d\u505a\u53d8\u66f4\u3002\u4e0b\u9762\u51e0\u884c\u90fd\u7528\u4e8e\u67e5\u770b\uff0c\u4e0d\u4f1a\u5b89\u88c5\u65b0\u8f6f\u4ef6\u3002\u914d\u7f6e\u8f93\u51fa\u4e2d\u53ef\u80fd\u5305\u542b\u7ec4\u7ec7\u5185\u90e8\u5730\u5740\uff0c\u5411\u4ed6\u4eba\u6c42\u52a9\u65f6\u5e94\u5148\u6e05\u7406\u4e0d\u9002\u5408\u516c\u5f00\u7684\u5185\u5bb9\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\nconda config --show channels\r\nconda config --show channel_priority\r\nconda list -n conda-lab --show-channel-urls\r\n<\/code><\/pre>\n<p><code>conda-forge<\/code> \u662f\u793e\u533a\u7ef4\u62a4\u7684\u6e20\u9053\uff1bBioconda \u9762\u5411\u751f\u7269\u4fe1\u606f\u5b66\u8f6f\u4ef6\u3002\u6e20\u9053\u5e76\u4e0d\u662f\u8d8a\u591a\u8d8a\u597d\uff0c\u540c\u540d\u5305\u53ef\u80fd\u6709\u4e0d\u540c\u6784\u5efa\u65b9\u5f0f\u548c\u4f9d\u8d56\u7ea6\u675f\u3002\u6df7\u5408\u6765\u6e90\u4f1a\u589e\u52a0\u6392\u67e5\u6210\u672c\u3002\u53ef\u4ee5\u5148\u4e3a\u4e00\u4e2a\u5c0f\u9879\u76ee\u660e\u786e\u6e20\u9053\u7b56\u7565\uff0c\u518d\u6309\u5de5\u5177\u5b98\u65b9\u8981\u6c42\u589e\u52a0\u5fc5\u8981\u6765\u6e90\uff0c\u4e0d\u8981\u9047\u5230\u5b89\u88c5\u5931\u8d25\u5c31\u4e0d\u65ad\u5f80\u914d\u7f6e\u91cc\u8ffd\u52a0\u5730\u5740\u3002<\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u547d\u4ee4\u7ea7\u7684 <code>--override-channels<\/code>\uff0c\u8ba9\u672c\u6b21\u6c42\u89e3\u53ea\u8003\u8651\u547d\u4ee4\u4e2d\u6307\u5b9a\u7684\u6e20\u9053\uff1b\u5b83\u4e0d\u4f1a\u628a\u4f60\u7684\u5168\u5c40\u914d\u7f6e\u6c38\u4e45\u6539\u6210\u8fd9\u5957\u8bbe\u7f6e\u3002<code>-c<\/code> \u7684\u5148\u540e\u987a\u5e8f\u4e5f\u6709\u610f\u4e49\uff0c\u7ed3\u5408\u4e25\u683c\u4f18\u5148\u7ea7\u53ef\u4ee5\u907f\u514d\u4f4e\u4f18\u5148\u7ea7\u6e20\u9053\u7684\u540c\u540d\u5305\u968f\u610f\u53c2\u4e0e\u9009\u62e9\u3002\u5177\u4f53\u89e3\u91ca\u89c1 <a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/user-guide\/tasks\/manage-channels.html\">Conda \u6e20\u9053\u7ba1\u7406\u6587\u6863<\/a>\u3002<\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e8c\u3001\u5148\u770b\u5b89\u88c5\u8ba1\u5212\uff0c\u518d\u771f\u6b63\u6267\u884c<\/h2>\n<p>\u672c\u7cfb\u5217\u7528 Biopython 1.85 \u4f5c\u4e3a\u6559\u5b66\u4f9d\u8d56\uff0c\u9009\u62e9\u56fa\u5b9a\u7248\u672c\u662f\u4e3a\u4e86\u8ba9\u64cd\u4f5c\u66f4\u53ef\u8ffd\u8e2a\uff0c\u4e0d\u662f\u5728\u5ba3\u79f0\u5b83\u662f\u4eca\u5929\u7684\u6700\u65b0\u7248\u3002\u82e5\u4f60\u7684\u5e73\u53f0\u6ca1\u6709\u76f8\u5e94\u6784\u5efa\uff0c\u5e94\u5148\u6838\u5bf9\u5e73\u53f0\u4e0e\u53ef\u7528\u7248\u672c\uff0c\u518d\u51b3\u5b9a\u8c03\u6574\uff0c\u4e0d\u80fd\u628a\u6240\u6709\u95ee\u9898\u90fd\u5f52\u548e\u4e8e\u7f51\u7edc\u6162\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 search --override-channels -c conda-forge &quot;biopython=1.85&quot;\r\nconda install -n conda-lab --override-channels -c conda-forge --strict-channel-priority biopython=1.85 --dry-run\r\nconda install -n conda-lab --override-channels -c conda-forge --strict-channel-priority biopython=1.85\r\n<\/code><\/pre>\n<p>\u7b2c\u4e8c\u884c\u662f\u9884\u6f14\uff0c\u4f1a\u5217\u51fa\u8ba1\u5212\u4f46\u4e0d\u6267\u884c\u5b89\u88c5\u4e8b\u52a1\uff1b\u7b2c\u4e09\u884c\u624d\u662f\u771f\u6b63\u5b89\u88c5\u3002\u9605\u8bfb\u8ba1\u5212\u65f6\u91cd\u70b9\u770b\u4e09\u4ef6\u4e8b\uff1a\u662f\u5426\u6307\u5411\u76ee\u6807\u73af\u5883\uff0c\u9664\u4e86 Biopython \u8fd8\u51c6\u5907\u6dfb\u52a0\u54ea\u4e9b\u4f9d\u8d56\uff0c\u662f\u5426\u8981\u5347\u7ea7\u6216\u964d\u7ea7\u5df2\u6709\u8f6f\u4ef6\u3002\u4e00\u4e2a\u5305\u5e26\u6765\u591a\u4e2a\u4f9d\u8d56\u5f88\u6b63\u5e38\uff0c\u4f46\u5982\u679c\u8fde\u9879\u76ee\u6838\u5fc3\u7248\u672c\u90fd\u8981\u6539\uff0c\u5c31\u5e94\u8be5\u5148\u505c\u4e0b\u6765\u7406\u89e3\u539f\u56e0\u3002\u9009\u9879\u5b9a\u4e49\u53ef\u67e5 <a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/commands\/install.html\">conda install \u6587\u6863<\/a>\u3002<\/p>\n<p>\u5728\u5df2\u6709\u9879\u76ee\u4e0a\u8bd5\u88c5\u65b0\u5de5\u5177\uff0c\u6700\u597d\u5148\u4fdd\u7559\u73af\u5883\u6e05\u5355\uff1b\u82e5\u53ea\u662f\u63a2\u7d22\uff0c\u8fd8\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2a\u8bd5\u9a8c\u73af\u5883\u3002\u4e0d\u8981\u628a\u5de5\u4f5c\u73af\u5883\u5f53\u4f5c\u65e0\u9650\u8bd5\u9519\u7684\u5bb9\u5668\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\uff0c\u5c11\u91cf\u76f8\u4e92\u72ec\u7acb\u3001\u7528\u9014\u660e\u786e\u7684\u73af\u5883\uff0c\u901a\u5e38\u6bd4\u4e00\u4e2a\u79ef\u7d2f\u4e86\u51e0\u5341\u79cd\u7528\u9014\u7684\u5927\u73af\u5883\u66f4\u597d\u7406\u89e3\u3002<\/p>\n<p>\u5b89\u88c5\u7ed3\u675f\u540e\uff0c\u4e0d\u8981\u6025\u7740\u8fd0\u884c\u6b63\u5f0f\u6570\u636e\uff0c\u5148\u68c0\u67e5\u5bfc\u5165\u8def\u5f84\u548c\u7248\u672c\u3002\u4e0b\u9762\u7684 <code>Bio<\/code> \u662f Python \u5bfc\u5165\u6a21\u5757\u540d\u79f0\uff0c<code>biopython<\/code> \u662f\u5b89\u88c5\u5305\u540d\uff0c\u4e8c\u8005\u5e76\u4e0d\u76f8\u540c\u3002\u8fd9\u4e5f\u662f\u770b\u5230\u5bfc\u5165\u9519\u8bef\u540e\u4e0d\u80fd\u673a\u68b0\u5730\u628a\u6a21\u5757\u540d\u590d\u5236\u5230\u5b89\u88c5\u547d\u4ee4\u91cc\u7684\u539f\u56e0\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 run -n conda-lab python -c &quot;import Bio; print(Bio.__version__); print(Bio.__file__)&quot;\r\n<\/code><\/pre>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b\u5e94\u663e\u793a <code>1.85<\/code>\uff0c\u4ee5\u53ca\u76ee\u6807\u73af\u5883\u5185\u7684\u6a21\u5757\u8def\u5f84\u3002\u5982\u679c\u663e\u793a\u53e6\u4e00\u4e2a\u7248\u672c\uff0c\u5148\u8c03\u67e5\u89e3\u91ca\u5668\u4e0e\u6a21\u5757\u4f4d\u7f6e\uff0c\u4e0d\u8981\u7acb\u5373\u91cd\u590d\u5b89\u88c5\u3002\u8bfb\u8005\u5982\u679c\u4e3b\u52a8\u6362\u7528\u4e86\u5176\u4ed6\u7248\u672c\uff0c\u7248\u672c\u8f93\u51fa\u5f53\u7136\u4e5f\u4f1a\u53d8\u5316\uff0c\u5e94\u628a\u53d8\u5316\u5199\u8fdb\u81ea\u5df1\u7684\u9879\u76ee\u8bf4\u660e\u3002<\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e09\u3001\u7528\u4e00\u4e2a\u80fd\u624b\u5de5\u6838\u5bf9\u7684 FASTA \u6587\u4ef6\u9a8c\u6536<\/h2>\n<p>\u5728\u7b2c\u4e00\u7bc7\u7684 <code>conda-lab-project<\/code> \u76ee\u5f55\u4e2d\uff0c\u65b0\u5efa <code>demo.fa<\/code>\uff0c\u628a\u4e0b\u9762\u5185\u5bb9\u539f\u6837\u4fdd\u5b58\u3002\u7b2c\u4e00\u5217\u7684 <code>&gt;<\/code> \u8868\u793a\u5e8f\u5217\u6807\u9898\uff0c\u6bcf\u6761\u6807\u9898\u540e\u9762\u7d27\u8ddf\u5bf9\u5e94\u7684\u5e8f\u5217\u3002\u4e24\u6761\u5e8f\u5217\u90fd\u53ea\u542b A\u3001C\u3001G\u3001T\uff0c\u56e0\u6b64\u672c\u4f8b\u4e0d\u7528\u8ba8\u8bba\u6a21\u7cca\u78b1\u57fa\u5982\u4f55\u5904\u7406\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-text\">&gt;seq_A\r\nACGTTGCA\r\n&gt;seq_B\r\nGGCCAA\r\n<\/code><\/pre>\n<p>\u518d\u521b\u5efa <code>summarize_fasta.py<\/code>\u3002\u6587\u4ef6\u8bfb\u53d6\u3001\u5f02\u5e38\u5904\u7406\u548c\u8f93\u51fa\u90fd\u5728\u8fd9\u4e00\u4e2a\u811a\u672c\u4e2d\uff0c\u540e\u9762\u4e09\u7bc7\u7ee7\u7eed\u4f7f\u7528\u5b83\u3002\u811a\u672c\u9047\u5230\u7a7a\u6587\u4ef6\u3001\u7a7a\u5e8f\u5217\u6216\u975e ACGT \u5b57\u7b26\u4f1a\u505c\u6b62\uff0c\u5e76\u7ed9\u51fa\u9519\u8bef\uff1b\u8fd9\u662f\u4e00\u6761\u6709\u610f\u6536\u7a84\u7684\u6559\u5b66\u89c4\u5219\uff0c\u4e0d\u8868\u793a\u771f\u5b9e\u751f\u7269\u5e8f\u5217\u4e0d\u80fd\u51fa\u73b0 N \u7b49\u7b26\u53f7\u3002\u771f\u5b9e\u9879\u76ee\u5e94\u6309\u660e\u786e\u7684\u7edf\u8ba1\u5b9a\u4e49\u5904\u7406\u6a21\u7cca\u78b1\u57fa\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 argparse\r\nfrom Bio import SeqIO\r\n\r\nparser = argparse.ArgumentParser()\r\nparser.add_argument(&quot;input_fasta&quot;)\r\nargs = parser.parse_args()\r\nrecords = list(SeqIO.parse(args.input_fasta, &quot;fasta&quot;))\r\nif not records:\r\n    raise ValueError(&quot;No FASTA records found&quot;)\r\n\r\nrows = []\r\nfor record in records:\r\n    sequence = str(record.seq).upper()\r\n    if not sequence or set(sequence) - set(&quot;ACGT&quot;):\r\n        raise ValueError(f&quot;Invalid ACGT sequence: {record.id}&quot;)\r\n    gc = 100 * (sequence.count(&quot;G&quot;) + sequence.count(&quot;C&quot;)) \/ len(sequence)\r\n    rows.append((record.id, len(sequence), gc))\r\n\r\nprint(&quot;id\\tlength\\tgc_percent&quot;)\r\nfor name, length, gc in rows:\r\n    print(f&quot;{name}\\t{length}\\t{gc:.2f}&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\">conda run -n conda-lab python summarize_fasta.py demo.fa\r\n<\/code><\/pre>\n<p>\u9884\u671f\u8868\u5934\u662f\u5e8f\u5217\u540d\u79f0\u3001\u957f\u5ea6\u548c GC \u767e\u5206\u6bd4\u3002\u4e24\u6761\u8bb0\u5f55\u4f9d\u6b21\u4e3a <code>seq_A \/ 8 \/ 50.00<\/code>\u3001<code>seq_B \/ 6 \/ 66.67<\/code>\uff0c\u5217\u4e4b\u95f4\u4f7f\u7528\u5236\u8868\u7b26\u5206\u9694\u3002\u7b2c\u4e8c\u6761\u5e8f\u5217\u56db\u4e2a GC \u9664\u4ee5\u516d\u4e2a\u78b1\u57fa\uff0c\u56db\u820d\u4e94\u5165\u5230\u4e24\u4f4d\u5c0f\u6570\u4fbf\u5f97\u5230\u540e\u4e00\u4e2a\u7ed3\u679c\u3002Biopython \u8bfb\u53d6\u63a5\u53e3\u53ef\u53c2\u9605 <a href=\"https:\/\/biopython.org\/docs\/1.85\/Tutorial\/chapter_seqio.html\">SeqIO \u5b98\u65b9\u6559\u7a0b<\/a>\u3002<\/p>\n<p>\u672c\u4f8b\u628a\u6240\u6709\u8bb0\u5f55\u8bfb\u5165\u5217\u8868\uff0c\u4fbf\u4e8e\u521d\u5b66\u8005\u770b\u6e05\u6267\u884c\u987a\u5e8f\uff0c\u4e5f\u4fbf\u4e8e\u5148\u68c0\u67e5\u5168\u90e8\u8f93\u5165\u518d\u8f93\u51fa\u3002\u5927\u578b FASTA \u6587\u4ef6\u4e0d\u5b9c\u76f4\u63a5\u5957\u7528\u8fd9\u79cd\u5185\u5b58\u7b56\u7565\uff0c\u5c4a\u65f6\u5e94\u6539\u6210\u6d41\u5f0f\u5904\u7406\u5e76\u5b89\u6392\u7ed3\u679c\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u68c0\u67e5\u3002\u4e00\u4e2a\u793a\u4f8b\u80fd\u8fd0\u884c\uff0c\u53ea\u8bc1\u660e\u8fd9\u4e2a\u8f93\u5165\u4e0b\u7684\u884c\u4e3a\u7b26\u5408\u9884\u671f\uff0c\u4e0d\u4ee3\u8868\u5b83\u5df2\u7ecf\u9002\u7528\u4e8e\u4efb\u610f\u89c4\u6a21\u3002<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" style=\"display:block;width:100%;height:auto;margin:24px 0\" alt=\"\u7b2c\u4e8c\u7bc7\u9a8c\u6536\u793a\u610f\uff1a\u8bfb\u53d6\u4e24\u6761\u5e8f\u5217\uff0c\u6838\u5bf9\u957f\u5ea6\u4e0eGC\u6bd4\u4f8b\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/conda-series-20261116-figure-04.png?ssl=1\" \/><\/p>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u56db\u3001\u4ec0\u4e48\u65f6\u5019\u624d\u8003\u8651 pip<\/h2>\n<p>pip \u4e3b\u8981\u5b89\u88c5 Python \u8f6f\u4ef6\u5305\uff0cConda \u8fd8\u53ef\u4ee5\u7ba1\u7406\u4e0d\u5c11\u975e Python \u4f9d\u8d56\u3002\u4e24\u8005\u80fd\u914d\u5408\uff0c\u4f46\u4e0d\u80fd\u5047\u8bbe\u5b83\u4eec\u5171\u4eab\u5b8c\u5168\u76f8\u540c\u7684\u4f9d\u8d56\u89c6\u56fe\u3002\u5b9e\u7528\u7684\u987a\u5e8f\u662f\u5148\u5b89\u88c5\u80fd\u591f\u901a\u8fc7 Conda \u914d\u9f50\u7684\u4f9d\u8d56\uff0c\u518d\u5bf9\u786e\u5b9e\u6ca1\u6709\u5408\u9002 Conda \u5305\u7684\u90e8\u5206\u4f7f\u7528 pip\uff0c\u5e76\u628a\u989d\u5916\u5b89\u88c5\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<p>\u4f7f\u7528 pip \u65f6\uff0c<code>python -m pip<\/code> \u6bd4\u5355\u72ec\u8f93\u5165 <code>pip<\/code> \u66f4\u5bb9\u6613\u660e\u786e\u5b83\u5c5e\u4e8e\u54ea\u4e2a\u89e3\u91ca\u5668\u3002\u672c\u7cfb\u5217\u4e3b\u6d41\u7a0b\u4e0d\u9700\u8981\u989d\u5916 pip \u8f6f\u4ef6\uff0c\u56e0\u6b64\u4e0b\u9762\u4ec5\u68c0\u67e5\u76ee\u6807\u73af\u5883\u7684 pip \u8eab\u4efd\uff1b\u5982\u679c\u5b83\u6ca1\u6709\u5b89\u88c5\uff0c\u518d\u663e\u5f0f\u5b89\u88c5\u5230\u8be5\u73af\u5883\u3002\u4e0d\u8981\u56e0\u4e3a\u7cfb\u7edf\u91cc\u6709\u4e00\u4e2a pip \u547d\u4ee4\u5c31\u8ba4\u5b9a\u5b83\u5c5e\u4e8e\u5f53\u524d\u9879\u76ee\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 install -n conda-lab --override-channels -c conda-forge pip\r\nconda run -n conda-lab python -m pip --version\r\nconda run -n conda-lab python -m pip check\r\n<\/code><\/pre>\n<p><code>pip check<\/code> \u53ef\u4ee5\u68c0\u67e5 Python \u5305\u5143\u6570\u636e\u5c42\u9762\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u4f46\u4e0d\u4f1a\u4ee3\u66ff\u771f\u5b9e\u8fd0\u884c\u6d4b\u8bd5\uff0c\u4e5f\u4e0d\u4f1a\u8bc1\u660e\u5e95\u5c42\u5e93\u3001\u5916\u90e8\u547d\u4ee4\u6216 GPU \u9a71\u52a8\u90fd\u6ca1\u6709\u95ee\u9898\u3002\u82e5\u540e\u7eed\u53c8\u8981\u5927\u5e45\u66f4\u6362 Conda \u4f9d\u8d56\uff0c\u91cd\u5efa\u4e00\u4e2a\u6e05\u6670\u7684\u65b0\u73af\u5883\uff0c\u901a\u5e38\u6bd4\u5728\u5df2\u88ab\u591a\u6b21\u4ea4\u66ff\u4fee\u6539\u7684\u73af\u5883\u91cc\u7ee7\u7eed\u4fee\u8865\u66f4\u5bb9\u6613\u8ffd\u8e2a\u3002\u6709\u5173\u642d\u914d\u539f\u5219\u89c1 <a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/user-guide\/tasks\/manage-pkgs.html\">Conda \u8f6f\u4ef6\u5305\u7ba1\u7406\u8bf4\u660e<\/a>\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\">\u9700\u6c42<\/th>\n<th style=\"padding:12px;background:#e8f5f1;border:1px solid #c9ded7;text-align:left\">\u5efa\u8bae\u52a8\u4f5c<\/th>\n<th style=\"padding:12px;background:#e8f5f1;border:1px solid #c9ded7;text-align:left\">\u9a8c\u8bc1\u91cd\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u672c\u7cfb\u5217\u8bfb\u53d6 FASTA<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">Conda \u5b89\u88c5 Biopython<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u7248\u672c\u3001\u6a21\u5757\u4f4d\u7f6e\u3001\u4e24\u6761\u8f93\u51fa<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u5b89\u88c5 Bioconda \u547d\u4ee4\u884c\u5de5\u5177<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u6309\u5176\u5b98\u65b9\u6e20\u9053\u548c\u5e73\u53f0\u8981\u6c42\u5efa\u73af\u5883<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u547d\u4ee4\u7248\u672c\u4e0e\u6700\u5c0f\u8f93\u5165<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u53ea\u6709 PyPI \u63d0\u4f9b\u6240\u9700\u5305<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u76ee\u6807\u73af\u5883\u5185\u4f7f\u7528 python -m pip<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u4f9d\u8d56\u68c0\u67e5\u548c\u5b9e\u9645\u8fd0\u884c<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u63a2\u7d22\u4e00\u4e2a\u7528\u9014\u4e0d\u540c\u7684\u5927\u5de5\u5177<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u65b0\u5efa\u8bd5\u9a8c\u73af\u5883<\/td>\n<td style=\"padding:12px;border:1px solid #c9ded7\">\u662f\u5426\u5f71\u54cd\u73b0\u6709\u5de5\u4f5c\u73af\u5883<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 style=\"font-size:25px;line-height:1.5;margin-top:38px;color:#13565c\">\u4e94\u3001\u751f\u4fe1\u5de5\u5177\u8fd8\u6709\u5e73\u53f0\u8fd9\u4e00\u5173<\/h2>\n<p>\u540e\u7eed\u5982\u679c\u8981\u5b89\u88c5 Bioconda \u5de5\u5177\uff0c\u5e94\u6ce8\u610f\u5b83\u5f53\u524d\u9762\u5411 Linux \u548c macOS \u7684\u53d7\u652f\u6301\u67b6\u6784\uff0c\u4e0d\u80fd\u628a\u539f\u751f Windows \u5f53\u4f5c\u540c\u7b49\u7684\u8f6f\u4ef6\u5305\u5e73\u53f0\u3002Windows \u8bfb\u8005\u53ef\u5728\u5408\u9002\u7684 WSL Linux \u73af\u5883\u6216 Linux \u670d\u52a1\u5668\u4e0a\u64cd\u4f5c\uff0c\u5177\u4f53\u652f\u6301\u8303\u56f4\u4ecd\u9700\u68c0\u67e5\u5de5\u5177\u81ea\u8eab\u8bf4\u660e\u3002\u4e0d\u8981\u56e0\u4e3a Python \u80fd\u5728 Windows \u8fd0\u884c\uff0c\u5c31\u8ba4\u4e3a\u6240\u6709\u751f\u4fe1\u4e8c\u8fdb\u5236\u5de5\u5177\u4e5f\u90fd\u6709 Windows \u5305\u3002<\/p>\n<p>\u4f8b\u5982\u5728\u53d7\u652f\u6301\u7684 Linux \u6216 macOS \u4e0a\uff0c\u53ef\u4ee5\u5148\u9884\u6f14\u4e00\u4e2a\u72ec\u7acb\u7684 SeqKit \u73af\u5883\u3002\u8be5\u5206\u652f\u4e0d\u662f\u672c\u7cfb\u5217\u5fc5\u505a\u6b65\u9aa4\uff0c\u4e0d\u4f1a\u6539\u53d8\u7528\u4e8e FASTA \u7ec3\u4e60\u7684 <code>conda-lab<\/code>\u3002\u6e20\u9053\u987a\u5e8f\u4e0e\u4e25\u683c\u4f18\u5148\u7ea7\u4f9d\u636e <a href=\"https:\/\/bioconda.github.io\/\">Bioconda \u5b98\u65b9\u4f7f\u7528\u8bf4\u660e<\/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\">conda create -n seqkit-lab --override-channels -c conda-forge -c bioconda --strict-channel-priority seqkit --dry-run\r\n<\/code><\/pre>\n<p>\u6700\u540e\u518d\u505a\u4e00\u6b21\u5c0f\u7ec3\u4e60\uff1a\u9000\u51fa\u5f53\u524d\u73af\u5883\uff0c\u7528\u663e\u5f0f\u6307\u5b9a\u73af\u5883\u7684\u547d\u4ee4\u91cd\u65b0\u7edf\u8ba1\u4e24\u6761\u5e8f\u5217\uff0c\u7136\u540e\u6253\u5f00\u9879\u76ee\u76ee\u5f55\uff0c\u786e\u8ba4\u8f93\u5165\u548c\u811a\u672c\u4ecd\u5728\u539f\u5904\u3002\u8fd9\u4e2a\u52a8\u4f5c\u80fd\u591f\u5e2e\u52a9\u4f60\u5206\u6e05\u8f6f\u4ef6\u5b89\u88c5\u4f4d\u7f6e\u4e0e\u9879\u76ee\u6587\u4ef6\u4f4d\u7f6e\u3002\u63a5\u7740\u628a\u672c\u6b21\u5b89\u88c5\u547d\u4ee4\u548c\u5bfc\u5165\u68c0\u67e5\u7ed3\u679c\u5199\u8fdb\u9879\u76ee\u8bf4\u660e\uff0c\u5c24\u5176\u8bb0\u5f55\u81ea\u5df1\u662f\u5426\u8c03\u6574\u8fc7\u7248\u672c\u3002\u4ee5\u540e\u540c\u4e8b\u9047\u5230\u4e0d\u540c\u7ed3\u679c\uff0c\u4f60\u4eec\u5c31\u80fd\u4ece\u5177\u4f53\u5dee\u5f02\u5f00\u59cb\u6bd4\u8f83\uff0c\u800c\u4e0d\u662f\u51ed\u5370\u8c61\u8ba8\u8bba\u201c\u5e94\u8be5\u88c5\u5f97\u5dee\u4e0d\u591a\u201d\u3002<\/p>\n<p>\u4eca\u5929\u6700\u503c\u5f97\u4fdd\u7559\u7684\u4e60\u60ef\uff0c\u662f\u6bcf\u6b21\u5b89\u88c5\u90fd\u8bf4\u5f97\u6e05\u76ee\u6807\u73af\u5883\u3001\u6765\u6e90\u548c\u9a8c\u8bc1\u65b9\u6cd5\u3002\u4e0b\u4e00\u7bc7\u4f1a\u7528\u540c\u4e00\u4e2a FASTA \u9879\u76ee\u7ec3\u4e60\u6392\u9519\uff1a\u5f53\u8f6f\u4ef6\u88c5\u597d\u4e86\u5374\u65e0\u6cd5\u5bfc\u5165\uff0c\u6216\u8005\u6c42\u89e3\u5931\u8d25\u65f6\uff0c\u5e94\u8be5\u4ece\u54ea\u4e00\u6b65\u5f00\u59cb\u68c0\u67e5\u3002\u82e5\u4f60\u51c6\u5907\u628a\u591a\u4e2a\u751f\u4fe1\u6d41\u7a0b\u90e8\u7f72\u5230\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5148\u6574\u7406\u5de5\u5177\u6e05\u5355\u3001\u7248\u672c\u7ea6\u675f\u4e0e\u8fd0\u884c\u5e73\u53f0\uff0c\u518d<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\">\u8054\u7cfb\u4e91\u751f\u4fe1\u54a8\u8be2\u73af\u5883\u89c4\u5212<\/a>\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>\u7b2c\u4e00\u7bc7\u5df2\u7ecf\u5efa\u7acb`conda-lab`\u73af\u5883\uff0c\u5e76\u8dd1\u901a\u4e86\u53ea\u4f9d\u8d56Python\u81ea\u5e26\u529f\u80fd\u7684\u5e8f\u5217\u7edf\u8ba1\u811a\u672c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u628a\u624b\u5199\u5b57\u7b26\u4e32\u5347\u7ea7\u4e3a\u771f\u6b63\u7684FASTA\u6587\u4ef6\uff0c\u5e76\u5b89\u88c5Biopython\u8bfb\u53d6\u5b83\u3002\u8fd9\u4e2a\u5c0f\u53d8\u5316\u4f1a\u5f15\u51fa\u65b0\u624b\u6700\u5bb9\u6613\u6df7\u6dc6\u7684\u4e09\u4e2a\u95ee\u9898\uff1a\u8f6f\u4ef6\u5305\u4ece\u54ea\u91cc\u6765\uff0c\u7248\u672c\u8981\u6307\u5b9a\u5230\u591a\u7ec6\uff0c\u4e3a\u4ec0\u4e48Conda\u4e0epip\u4e0d\u80fd\u968f\u610f\u4ea4\u66ff\u4f7f\u7528\u3002<\/p>\n","protected":false},"author":1,"featured_media":73361,"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-73353","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-03.png?fit=1400%2C900&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73353","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=73353"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73353\/revisions"}],"predecessor-version":[{"id":73363,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/73353\/revisions\/73363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/73361"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=73353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=73353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=73353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}