{"id":35536,"date":"2025-05-04T13:51:38","date_gmt":"2025-05-04T05:51:38","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35536.html"},"modified":"2025-05-04T13:51:38","modified_gmt":"2025-05-04T05:51:38","slug":"linux-%e4%b8%8b-mamba-%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85%e8%b8%a9%e5%9d%91%e9%97%ae%e9%a2%98%e6%b1%87%e6%80%bb%ef%bc%88%e9%87%8d%e7%bd%ae%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35536.html","title":{"rendered":"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09"},"content":{"rendered":"<h2>\u5bfc\u822a<\/h2>\n<h3>\u5b89\u88c5\u6559\u7a0b\u5bfc\u822a<\/h3>\n<ul>\n<li>Mamba \u53ca Vim \u5b89\u88c5\u95ee\u9898\u53c2\u770b\u672c\u4eba\u535a\u5ba2 &#xff1a;Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5&#xff08;\u521d\u7248&#xff09;<\/li>\n<li>Linux \u4e0b Mamba \u5b89\u88c5\u95ee\u9898\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5&#xff08;\u91cd\u7f6e\u7248&#xff09;<\/li>\n<li>Windows \u4e0b Mamba \u7684\u5b89\u88c5\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Window \u4e0bMamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5 &#xff08;\u65e0\u9700\u7ed5\u8fc7selective_scan_cuda&#xff09;<\/li>\n<li>Linux \u4e0b Vim \u5b89\u88c5\u95ee\u9898\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Linux \u4e0b Vim \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5&#xff08;\u91cd\u7f6e\u7248&#xff09;<\/li>\n<li>Windows \u4e0b Vim \u5b89\u88c5\u95ee\u9898\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Window \u4e0b Vim \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5<\/li>\n<li>Linux \u4e0bVmamba \u5b89\u88c5\u6559\u7a0b\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Vmamba \u5b89\u88c5\u6559\u7a0b&#xff08;\u65e0\u9700\u66f4\u6539base\u73af\u5883\u4e2d\u7684cuda\u7248\u672c&#xff09;<\/li>\n<li>Windows \u4e0b VMamba\u7684\u5b89\u88c5\u53c2\u770b\u672c\u4eba\u535a\u5ba2&#xff1a;Windows \u4e0b VMamba \u5b89\u88c5\u6559\u7a0b&#xff08;\u65e0\u9700\u66f4\u6539base\u73af\u5883\u4e2d\u7684cuda\u7248\u672c\u4e14\u53ef\u52a0\u901f&#xff09;<\/li>\n<li>Windows\u4e0b Mamba2\u53ca\u9ad8\u7248\u672c causal_conv1d \u5b89\u88c5\u53c2\u8003\u672c\u4eba\u535a\u5ba2&#xff1a;Windows \u4e0bMamba2 \u73af\u5883\u5b89\u88c5\u95ee\u9898\u8bb0\u5f55\u53ca\u89e3\u51b3\u65b9\u6cd5&#xff08;causal_conv1d&#061;1.4.0&#xff09;<\/li>\n<li>Windows \u4e0b Mamba \/ Vim \/ Vmamba \u73af\u5883\u5b89\u88c5\u7ec8\u6781\u7248\u53c2\u8003\u672c\u4eba\u535a\u5ba2&#xff1a;Windows \u4e0bMamba2 \/ Vim \/ Vmamba \u73af\u5883\u5b89\u88c5\u95ee\u9898\u8bb0\u5f55\u53ca\u89e3\u51b3\u65b9\u6cd5\u7ec8\u6781\u7248&#xff08;\u65e0\u9700\u7ed5\u8fc7triton&#xff09;<\/li>\n<li>&#xff08;GPU\u7b97\u529b12.0\u7248\u672c&#xff09;Windows \u4e0b Mamba \/ Vim \/ Vmamba \u73af\u5883\u914d\u7f6e\u6559\u7a0b \u53c2\u8003\u672c\u4eba\u535a\u5ba2&#xff1a;Windows \u4e0b Mamba \/ Vim \/ Vmamba \u73af\u5883\u914d\u7f6e\u5b89\u88c5\u6559\u7a0b&#xff08;\u9002\u7528\u4e8e5070,5080,5070Ti\u7b49GTX 50\u7cfb\u663e\u5361&#xff09;<\/li>\n<\/ul>\n<h3>\u5b89\u88c5\u6559\u7a0b\u53ca\u5b89\u88c5\u5305\u7d22\u5f15<\/h3>\n<p>\u4e0d\u77e5\u9053\u5982\u4f55\u5165\u624b\u8bf7\u5148\u9605\u8bfb\u65b0\u624b\u7d22\u5f15&#xff1a;Linux \/ Windows \u4e0b Mamba \/ Vim \/ Vmamba \u5b89\u88c5\u6559\u7a0b\u53ca\u5b89\u88c5\u5305\u7d22\u5f15<\/p>\n<p>\u672c\u7cfb\u5217\u6559\u7a0b\u5df2\u63a5\u5165ima\u77e5\u8bc6\u5e93&#xff0c;\u6b22\u8fce\u5728ima\u5c0f\u7a0b\u5e8f\u91cc\u8fdb\u884c\u63d0\u95ee&#xff01;&#xff08;\u5982\u95ee\u9898\u65e0\u6cd5\u89e3\u51b3&#xff0c;\u5b89\u88c5\u95ee\u9898 \/ \u8d44\u6e90\u552e\u540e \/ \u8bba\u6587\u5408\u4f5c\u60f3\u6cd5\u8bf7&#043;\u6587\u672b\u6216\u4e2a\u4eba\u7b80\u4ecbvx&#xff09;<\/p>\n<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\u5bfc\u822a<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5\u6559\u7a0b\u5bfc\u822a<\/li>\n<li>\u5b89\u88c5\u6559\u7a0b\u53ca\u5b89\u88c5\u5305\u7d22\u5f15<\/li>\n<\/ul>\n<\/li>\n<li>\u524d\u8a00<\/li>\n<li>\n<ul>\n<li>\u95ee\u9898\u63cf\u8ff0<\/li>\n<li>\u539f\u56e0\u5206\u6790&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>Linux\u4e0b\u89e3\u51b3\u65b9\u6cd5<\/li>\n<li>\n<ul>\n<li>1. \u5229\u7528Docker<\/li>\n<li>2. \u4ece\u6e90\u7801\u7f16\u8bd1<\/li>\n<li>3. \u5229\u7528\u5b98\u65b9\u7684 whl \u6587\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\u51fa\u73b0\u7684\u95ee\u9898<\/li>\n<li>\n<ul>\n<li>1. CDUA\u7248\u672c\u4e0d\u8bc6\u522b<\/li>\n<li>2. pip install \u4e4b\u540e\u5361\u4f4f\u4e0d\u52a8<\/li>\n<li>3. \u5b89\u88c5\u540e\u8c03\u7528\u65f6\u51fa\u73b0&#096;xxx-linux-gnu.so undefined symbol&#096;\u62a5\u9519<\/li>\n<li>4. \u51fa\u73b0 &#096;incompatible function arguments&#096;<\/li>\n<li>5. \u51fa\u73b0 &#096;unexpected keyword argument &#039;bimamba_type&#039;&#096;<\/li>\n<li>6. \u51fa\u73b0 &#096;cannot import name &#039;packaging&#039; &#096;<\/li>\n<li>7. \u51fa\u73b0 &#096;no kernel image is available&#096;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u524d\u8a00<\/h2>\n<p>\u7531\u4e8e\u672c\u4eba\u7b2c\u4e00\u7bc7\u535a\u5ba2Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5&#xff08;\u521d\u7248&#xff09; Linux\u548cWindows\u7684\u95ee\u9898\u5939\u6742&#xff0c;\u4e0d\u6613\u67e5\u8be2&#xff0c;\u91cd\u65b0\u6574\u7406\u5728Linux\u4e0b\u6240\u6709\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002<\/p>\n<h3>\u95ee\u9898\u63cf\u8ff0<\/h3>\n<p>\u76f4\u63a5 pip \u5b89\u88c5\u6216\u8005\u4e0b\u8f7d\u5de5\u7a0b\u6587\u4ef6\u518dsetup&#xff0c;\u51fa\u73b0\u4e86\u4ee5\u4e0b\u62a5\u9519\u4f46\u4e0d\u9650\u4e8e&#xff1a;<\/p>\n<li>Building wheel for causal-conv1d (setup.py) &#8230; error<\/li>\n<li>error: command &#039;\/usr\/bin\/gcc&#039; failed with exit code 1<\/li>\n<li>RuntimeError: Error compiling objects for extension<\/li>\n<li>ERROR: Could not build wheels for causal-conv1d, which is required to install pyproject.toml-based projects<\/li>\n<li>Connection timed out&gt; [end of output]<\/li>\n<li>ModuleNotFoundError: No module named &#039;packaging&#039;<\/li>\n<li>FileNotFoundError: [Errno 2] No such file or directory: &#039;\/usr\/local\/cuda\/bin\/nvcc&#039;<\/li>\n<li>error: subprocess-exited-with-error<\/li>\n<hr \/>\n<h3>\u539f\u56e0\u5206\u6790&#xff1a;<\/h3>\n<p>\u5927\u90e8\u5206\u539f\u56e0\u662fCUDA\u7248\u672c\u4e0d\u5339\u914d&#xff0c;\u6709\u90e8\u5206\u662f\u7f51\u7edc\u539f\u56e0\u3002<\/p>\n<h2>Linux\u4e0b\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<h3>1. \u5229\u7528Docker<\/h3>\n<p>\u4f7f\u7528\u7f51\u53cb\u914d\u7f6e\u597d\u7684Docker\u73af\u5883&#xff0c;\u53c2\u8003&#xff1a;\u89e3\u51b3causal_conv1d\u548cmamba_ssm\u65e0\u6cd5\u5b89\u88c5 -&#xff1e; \u76f4\u63a5\u4f7f\u7528Mamba\u57fa\u7840\u73af\u5883docker\u955c\u50cf\u3002 DockHub\u4ed3\u5e93\u5730\u5740&#xff1a;https:\/\/hub.docker.com\/repository\/docker\/kom4cr0\/cuda11.7-pytorch1.13-mamba1.1.1\/general \u4ee3\u7801&#xff1a;docker pull kom4cr0\/cuda11.7-pytorch1.13-mamba1.1.1:1.1.1<\/p>\n<h3>2. \u4ece\u6e90\u7801\u7f16\u8bd1<\/h3>\n<p>\u76f4\u63a5\u4e0b\u8f7d\u5de5\u7a0b\u6587\u4ef6&#xff0c;\u518dsetup\u3002\u53c2\u8003\u6b65\u9aa4\u4e3a&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> clone https:\/\/github.com\/Dao-AILab\/causal-conv1d.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> causal-conv1d<br \/>\n<span class=\"token function\">git<\/span> checkout v1.1.1 <span class=\"token comment\"># \u7528\u4f60\u60f3\u8981\u7684\u7248\u672c<\/span><br \/>\n<span class=\"token assign-left variable\">CAUSAL_CONV1D_FORCE_BUILD<\/span><span class=\"token operator\">&#061;<\/span>TRUE pip <span class=\"token function\">install<\/span> <span class=\"token builtin class-name\">.<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> <span class=\"token punctuation\">..<\/span><br \/>\n<span class=\"token function\">git<\/span> clone https:\/\/github.com\/state-spaces\/mamba.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> mamba<br \/>\n<span class=\"token function\">git<\/span> checkout v1.1.1 <span class=\"token comment\"># \u7528\u4f60\u60f3\u8981\u7684\u7248\u672c<\/span><br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token comment\"># \u65b9\u5f0f\u4e00&#xff0c;\u4e0b\u8f7dwhl\u5b89\u88c5&#xff0c;\u4e24\u79cd\u65b9\u5f0f\u9009\u62e9\u4e00\u4e2a\u5373\u53ef<\/span><br \/>\n<span class=\"token assign-left variable\">MAMBA_FORCE_BUILD<\/span><span class=\"token operator\">&#061;<\/span>TRUE pip <span class=\"token function\">install<\/span> <span class=\"token builtin class-name\">.<\/span> <span class=\"token comment\"># \u65b9\u5f0f\u4e8c&#xff0c;\u5f3a\u5236\u5728\u672c\u5730\u7f16\u8bd1\u5b89\u88c5&#xff0c;Win \u4e0b\u65e0\u6cd5\u8bc6\u522b\u6b64\u547d\u4ee4<\/span><\/p>\n<p>\u4ece\u6e90\u7801\u7f16\u8bd1\u7ecf\u5e38\u5bb9\u6613\u51fa\u73b0\u9519\u8bef&#xff0c;\u5927\u90e8\u5206\u90fd\u662f CUDA C&#043;&#043; \u76f8\u5173\u7684\u95ee\u9898&#xff0c;\u4e0d\u540c\u7684\u8bbe\u5907\u73af\u5883\u4e0d\u4e00\u6837&#xff0c;\u62a5\u9519\u4e5f\u662f\u5343\u5dee\u4e07\u522b&#xff0c;\u5177\u4f53\u89e3\u51b3\u65b9\u6cd5\u53ef\u4ee5\u7c7b\u4f3c Vmamba \u5b89\u88c5\u6559\u7a0b&#xff08;\u65e0\u9700\u66f4\u6539base\u73af\u5883\u4e2d\u7684cuda\u7248\u672c&#xff09;\u3002<\/p>\n<h3>3. \u5229\u7528\u5b98\u65b9\u7684 whl \u6587\u4ef6<\/h3>\n<p>\u53d7\u535a\u6587 \u201cflash-attention\u8e29\u5751&#xff1a;\u4f7f\u7528conda\u7ba1\u7406CUDA\u201d\u542f\u53d1&#xff0c;\u5408\u7406\u8c03\u6574\u5b89\u88c5\u987a\u5e8f&#xff0c;\u5148\u5b89\u88c5CUDA&#xff0c;\u5e76\u4e14\u5b89\u88c5cuda-nvcc&#xff0c;\u6b63\u786e\u7684\u5b89\u88c5\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<p>conda create -n your_env_name <span class=\"token assign-left variable\">python<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.10<\/span>.13<br \/>\nconda activate your_env_name<br \/>\nconda <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">cudatoolkit<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">11.8<\/span> -c nvidia<\/p>\n<p><span class=\"token comment\"># \u9b54\u6cd5\u7248<\/span><br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">torch<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1 <span class=\"token assign-left variable\">torchvision<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.16<\/span>.1 <span class=\"token assign-left variable\">torchaudio<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1 &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu118<br \/>\n<span class=\"token comment\"># \u56fd\u5185\u7248-\u4e0a\u4ea4\u955c\u50cf<\/span><br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">torch<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1&#043;cu118 <span class=\"token assign-left variable\">torchvision<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.16<\/span>.1&#043;cu118 <span class=\"token assign-left variable\">torchaudio<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1&#043;cu118 -f https:\/\/mirror.sjtu.edu.cn\/pytorch-wheels\/torch_stable.html<br \/>\n<span class=\"token comment\"># \u56fd\u5185\u7248-\u963f\u91cc\u955c\u50cf<\/span><br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token assign-left variable\">torch<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1 <span class=\"token assign-left variable\">torchvision<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">0.16<\/span>.1 <span class=\"token assign-left variable\">torchaudio<\/span><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">2.1<\/span>.1 -f https:\/\/mirrors.aliyun.com\/pytorch-wheels\/cu118<\/p>\n<p>conda <span class=\"token function\">install<\/span> -c <span class=\"token string\">&#034;nvidia\/label\/cuda-11.8.0&#034;<\/span> cuda-nvcc<br \/>\nconda <span class=\"token function\">install<\/span> packaging<\/p>\n<p>pip <span class=\"token function\">install<\/span> causal-conv1d<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">1.1<\/span>.1  <span class=\"token comment\"># \u7248\u672c\u53f7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9&#xff0c;\u6216\u8005\u4e0d\u6307\u5b9a\u76f4\u63a5\u5b89\u88c5\u6700\u65b0<\/span><br \/>\npip <span class=\"token function\">install<\/span> mamba-ssm<span class=\"token operator\">&#061;&#061;<\/span><span class=\"token number\">1.1<\/span>.3.post1  <span class=\"token comment\"># \u7248\u672c\u53f7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9&#xff0c;1.1 \u548c 1.2 \u5b9e\u6d4b\u6709\u51fd\u6570\u4e0d\u517c\u5bb9&#xff0c;\u4e0d\u8bbe\u5b9a\u9ed8\u8ba4\u88c5\u6700\u65b0\u7248\u672c<\/span><\/p>\n<p>\u4e00\u822c\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u5373\u53ef\u987a\u5229\u5b89\u88c5&#xff0c;\u7248\u672c\u5927\u5bb6\u81ea\u5df1\u81ea\u7531\u8c03\u6574&#xff0c;cuda&gt;&#061;11.7\u3002<\/p>\n<p>\u6ce8\u610f&#xff0c;\u622a\u6b62\u523020250401&#xff0c;\u5b98\u65b9whl\u7684\u6700\u9ad8\u7b97\u529b\u4ec5\u652f\u63017.0-9.0&#xff0c;GPU \u7b97\u529b12.0&#xff08;50\u7cfb\u5217&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u89c1Windows \u4e0b Mamba \/ Vim \/ Vmamba \u73af\u5883\u914d\u7f6e\u5b89\u88c5\u6559\u7a0b&#xff08;\u9002\u7528\u4e8e5070,5080,5070Ti\u7b49GTX 50\u7cfb\u663e\u5361&#xff09;&#xff09;\u6216\u8005GPU\u7b97\u529b 6.0 &#xff08;1080\u7cfb\u5217&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u89c1\u540e\u6587no kernel image is available&#xff09;\u5747\u6ca1\u6709\u5bf9\u5e94\u7684whl&#xff0c;\u6b64\u65f6\u5e94\u4ece\u6e90\u7801\u7f16\u8bd1\u3002<\/p>\n<h2>\u51fa\u73b0\u7684\u95ee\u9898<\/h2>\n<h3>1. CDUA\u7248\u672c\u4e0d\u8bc6\u522b<\/h3>\n<p>\u4e0d\u5c11\u5c0f\u4f19\u4f34\u5728\u88c5\u5b8c cuda-nvcc \u4ee5\u540e&#xff0c;\u5b89\u88c5 causal-conv1d \u65f6\u8fd8\u662f\u4f1a\u663e\u793aCUDA\u7248\u672c\u4e0d\u5bf9\u7684\u9519\u8bef&#xff0c;\u8fd9\u662f\u7531\u4e8e\u73af\u5883\u4e2d\u8fd8\u53ef\u80fd\u6709CUDA_HOME &#xff08;Linux&#xff09;\u53d8\u91cf\u6307\u5b9a\u5230\u9519\u8bef\u7684\u4f4d\u7f6e&#xff0c;\u6b64\u65f6\u9700\u8981\u68c0\u67e5&#xff1a;<\/p>\n<p>nvcc -V<br \/>\npython -c <span class=\"token string\">&#034;import torch.utils.cpp_extension; print(torch.utils.cpp_extension.CUDA_HOME)&#034;<\/span><\/p>\n<p>\u786e\u4fdd\u5176\u8f93\u51fa\u7684\u662f\u6b63\u786e\u7684\u7248\u672c\u6216\u4f4d\u7f6e\u3002\u5c24\u5176\u662f\u8981\u4fdd\u8bc1\u7b2c\u4e8c\u53e5\u547d\u4ee4\u8f93\u51fa\u7684\u4f4d\u7f6e\u662f\u6b63\u786e\u7684\u3002<\/p>\n<p>\u5728 Linux \u4e0b&#xff0c;\u5982\u679c\u7b2c\u4e8c\u53e5\u547d\u4ee4\u8f93\u51fa\u4f4d\u7f6e\u662fbase\u73af\u5883\u7684&#xff0c;\u4f7f\u7528 which nvcc \u83b7\u53d6\u865a\u62df\u73af\u5883\u6b63\u786e\u7684\u8def\u5f84&#xff0c;\u7136\u540e\u5728 .bashrc \u91cc\u9762\u8bbe\u7f6e\u6210\u8fd9\u4e2a\u4f4d\u7f6e export CUDA_HOME&#061;&#039;&#8230;.&#039; &#xff0c;source ~\/.bashrc \u6fc0\u6d3b\u914d\u7f6e&#xff0c;\u7136\u540e\u518d\u7ee7\u7eed\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n<h3>2. pip install \u4e4b\u540e\u5361\u4f4f\u4e0d\u52a8<\/h3>\n<p>\u5728Linux\u4e0b\u5361\u4f4f\u4e0d\u52a8\u662f\u56e0\u4e3a\u5b83\u5728\u4e0b\u8f7d\u5bf9\u5e94\u7684 *.whl \u6587\u4ef6&#xff0c;\u9700\u8981\u79d1\u5b66\u4e0a\u7f51&#xff0c;\u53ef\u4ee5\u7b49\u5b83\u4e0b\u8f7d\u5931\u8d25\u8f93\u51fa\u6b63\u786e\u7684\u7f51\u5740&#xff0c;\u7136\u540e\u624b\u52a8\u4e0b\u8f7d\u518dpip install \u8fd9\u4e2a whl \u6587\u4ef6\u3002\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7dwhl\u5b89\u88c5 \u5728\u6211\u7684\u914d\u7f6e\u4e0b\u9762&#xff1a; causal_conv1d \u4e0b\u8f7d\u94fe\u63a5\u4e3a&#xff1a;https:\/\/github.com\/Dao-AILab\/causal-conv1d\/releases\/download\/v1.1.1\/causal_conv1d-1.1.1&#043;cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl mamba_ssm \u4e0b\u8f7d\u94fe\u63a5\u4e3a&#xff1a;https:\/\/github.com\/state-spaces\/mamba\/releases\/download\/v1.1.3.post1\/mamba_ssm-1.1.3.post1&#043;cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl \u7136\u540e\u76f4\u63a5 pip install xxxx.whl \u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<h3>3. \u5b89\u88c5\u540e\u8c03\u7528\u65f6\u51fa\u73b0xxx-linux-gnu.so undefined symbol\u62a5\u9519<\/h3>\n<p>\u6709\u7684\u5c0f\u4f19\u4f34\u62a5\u9519&#xff0c;\u8b6c\u5982 ImportError xxxx selective_scan_cuda.cpython-xxx-linux-gnu.so undefined symbol &#xff08;\u53ef\u4ee5\u7528\u7f16\u8bd1\u597d\u7684\u6587\u4ef6\u76f4\u63a5\u66ff\u6362&#xff0c;selective-scan-cuda-linux-gnu.so&#xff09;\u6216\u8005 ImportError xxxx causal_conv1d_cuda.cpython-xxx-linux-gnu.so undefined symbol &#xff08;\u53ef\u4ee5\u7528\u7f16\u8bd1\u597d\u7684\u6587\u4ef6\u76f4\u63a5\u66ff\u6362&#xff0c;causal-conv1d-cuda.cpython-310-x86-64-linux-gnu.so&#xff09;\u3002<\/p>\n<p>\u51fa\u73b0 .so undefined symbol \u4e00\u822c\u662f\u6709\u7684\u56e0\u4e3a CUDA \u7248\u672c\u4e0d\u5339\u914d\u9020\u6210\u7684&#xff0c;\u53c2\u8003\u672c\u535a\u5ba2 20240418\u66f4\u65b0-\u5173\u4e8eCDUA\u7248\u672c\u3002\u8b6c\u5982\u5728\u865a\u62df\u73af\u5883\u4e2d which nvcc \u8c03\u7528\u7684\u662f\u865a\u62df\u73af\u5883\u7684 cuda&#xff0c;\u4f46\u662f python -c &#034;import torch.utils.cpp_extension; print(torch.utils.cpp_extension.CUDA_HOME)&#034; \u8f93\u51fa\u7684\u4f4d\u7f6e\u786e\u662fbase \u73af\u5883\u7684 usr\/local\/cuda\u3002<\/p>\n<p>\u4e5f\u6709\u53ef\u80fd\u5728\u4e0b whl \u65f6&#xff0c;whl \u548c\u73af\u5883\u6ca1\u5339\u914d\u4e0a&#xff08;python \u7248\u672c&#xff0c;torch\u7248\u672c\u4ee5\u53cacuda\u7248\u672c&#xff09;&#xff0c;\u8fd8\u6709\u8b6c\u5982 cxx11abiFALSE \u548c cxx11abiTRUE \u7684\u533a\u522b&#xff0c;\u5373 GLIBCXX_USE_CXX11_ABI \u7684\u503c&#xff0c;\u6328\u4e2a\u68c0\u6d4b\u8fd9\u4e9b\u7684\u7248\u672c\u3002\u8fd9\u91cc\u7ed9\u51fa\u83b7\u5f97 GLIBCXX_USE_CXX11_ABI \u503c\u7684\u65b9\u6cd5 &#xff08;\u53c2\u8003\u535a\u5ba2&#xff1a;[\u6559\u7a0b] Linux\u7cfb\u7edfAnaconda\u5e73\u53f0\u4e0b\u57fa\u4e8econda\u914d\u7f6eMamba_ssm\u73af\u5883&#xff09;&#xff1a;<\/p>\n<p>python -c <span class=\"token string\">&#039;import torch; print(torch._C._GLIBCXX_USE_CXX11_ABI); print(torch.compiled_with_cxx11_abi())&#039;<\/span><\/p>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b&#xff0c;\u8fd9\u4e24\u4e2a\u503c\u5e94\u8be5\u662f\u4e00\u81f4\u7684&#xff0c;\u5982\u679c\u8f93\u51fa\u4e3a TRUE&#xff0c;\u5219\u5e94\u4e0b\u8f7d causal_conv1d-1.1.1&#043;cu118torch2.1cxx11abiTRUE-cp310-cp310-linux_x86_64.whl \u548c mamba_ssm-1.1.3.post1&#043;cu118torch2.1cxx11abiTRUE-cp310-cp310-linux_x86_64.whl &#xff0c; \u5982\u679c\u8f93\u51fa\u4e3a FALSE&#xff0c;\u5219\u5e94\u4e0b\u8f7d causal_conv1d-1.1.1&#043;cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl \u548c mamba_ssm-1.1.3.post1&#043;cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl &#xff0c; \u9700\u8981\u548c\u73af\u5883\u4e00\u4e00\u5bf9\u5e94&#xff08;\u7248\u672c\u53f7\u5927\u5bb6\u6309\u81ea\u5df1\u9700\u8981&#xff09;\u3002<\/p>\n<h3>4. \u51fa\u73b0 incompatible function arguments<\/h3>\n<p>\u5728\u7528 pip install mamba-ssm \u5b89\u88c5\u5b8c mamba-ssm \u53d1\u73b0\u539f\u6765\u6b63\u5e38\u8fd0\u884c\u7684\u4ee3\u7801\u51fa\u73b0\u4ee5\u4e0b\u62a5\u9519&#xff1a;<\/p>\n<p>File <span class=\"token string\">&#034;\/home\/xxx\/.conda\/envs\/mamba\/lib\/python3.10\/site-packages\/mamba_ssm\/ops\/selective_scan_interface.py&#034;<\/span>, line <span class=\"token number\">187<\/span>, <span class=\"token keyword\">in<\/span> forward<br \/>\n    conv1d_out <span class=\"token operator\">&#061;<\/span> causal_conv1d_cuda.causal_conv1d_fwd<span class=\"token punctuation\">(<\/span><br \/>\nTypeError: causal_conv1d_fwd<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>: incompatible <span class=\"token keyword\">function<\/span> arguments. The following argument types are supported:<br \/>\n    <span class=\"token number\">1<\/span>. <span class=\"token punctuation\">(<\/span>arg0: torch.Tensor, arg1: torch.Tensor, arg2: Optional<span class=\"token punctuation\">[<\/span>torch.Tensor<span class=\"token punctuation\">]<\/span>, arg3: Optional<span class=\"token punctuation\">[<\/span>torch.Tensor<span class=\"token punctuation\">]<\/span>, arg4: bool<span class=\"token punctuation\">)<\/span> &#8211;<span class=\"token operator\">&gt;<\/span> torch.Tensor<\/p>\n<p>Invoked with: tensor<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token punctuation\">[<\/span>-4.9056e-40, -4.9057e-40, -4.9074e-40, -4.9078e-40<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">]<\/span>, <span class=\"token assign-left variable\">device<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;cuda:0&#039;<\/span>,<br \/>\n       <span class=\"token assign-left variable\">requires_grad<\/span><span class=\"token operator\">&#061;<\/span>True<span class=\"token punctuation\">)<\/span>, Parameter containing:<br \/>\ntensor<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span> <span class=\"token number\">0.0322<\/span>, -0.1139,  <span class=\"token number\">0.0770<\/span>,  <span class=\"token punctuation\">..<\/span>., -0.0320, -0.1266, -0.1096<span class=\"token punctuation\">]<\/span>,<br \/>\n       <span class=\"token assign-left variable\">device<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#039;cuda:0&#039;<\/span>, <span class=\"token assign-left variable\">requires_grad<\/span><span class=\"token operator\">&#061;<\/span>True<span class=\"token punctuation\">)<\/span>, None, None, None, True<\/p>\n<p>\u7ecf\u8fc7\u68c0\u67e5\u53d1\u73b0\u662f mamba-ssm \u7248\u672c\u7684\u95ee\u9898&#xff0c;\u62a5\u9519\u7684\u7248\u672c\u53f7\u4e3a 1.2.0.post1&#xff0c;\u5373 pip install mamba-ssm \u5b89\u88c5\u7684\u662f\u6700\u65b0\u7248\u672c&#xff0c;\u4e0e\u4e4b\u524d\u7684\u51fd\u6570\u5b58\u5728\u90e8\u5206\u4e0d\u517c\u5bb9&#xff0c;\u800c\u4e4b\u524d\u6b63\u5e38\u8fd0\u884c\u7248\u672c\u4e3a 1.1.3.post1\u3002<\/p>\n<h3>5. \u51fa\u73b0 unexpected keyword argument &#039;bimamba_type&#039;<\/h3>\n<p>\u6709\u5c0f\u4f19\u4f34\u5728\u8dd1 Vision Mamba \u65f6\u906d\u9047\u4ee5\u4e0b\u62a5\u9519&#xff08;Linux&#xff09;&#xff1a;<\/p>\n<p>TypeError: Mamba.__init__<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> got an unexpected keyword argument <span class=\"token string\">&#039;bimamba_type&#039;<\/span><\/p>\n<p>\u56e0\u4e3a Vision Mamba \u4fee\u6539\u4e86 Mamba \u7684\u6e90\u4ee3\u7801&#xff0c;\u4ece Mamba \u5b98\u65b9\u9014\u5f84\u5b89\u88c5\u7684\u5305\u4e2d\u662f\u6ca1\u6709\u8fd9\u4e2a\u51fd\u6570\u7684&#xff0c;\u6240\u4ee5\u9700\u8981\u5148\u5378\u8f7d\u539f\u7248Mamba &#xff0c;\u518d\u4ece Vision Mamba \u4ee3\u7801\u91cc\u7684Mamba \u6e90\u7801\u624b\u52a8\u5b89\u88c5&#xff0c;\u800c\u4e0d\u662f\u4ece Mamba \u5b98\u65b9\u9014\u5f84\u5b89\u88c5\u3002\u4e0d\u8fc7\u5b9e\u6d4b\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u6587\u4ef6\u66ff\u6362&#xff0c;\u7528 Vision Mamba \u7684selective_scan_interface.py \u66ff\u6362 selective_scan_interface.py&#xff0c;\u66ff\u6362 causal_conv1d_interface.py \u548c mamba_simple.py\u3002<\/p>\n<h3>6. \u51fa\u73b0 cannot import name &#039;packaging&#039; <\/h3>\n<p>\u6700\u8fd1\u6709\u5c0f\u4f19\u4f34\u5728\u5b89\u88c5\u65f6\u51fa\u73b0\u4ee5\u4e0b\u62a5\u9519&#xff1a;ImportError: cannot import name &#039;packaging&#039; from &#039;pkg_resources&#xff0c;\u539f\u56e0\u662f setuptools \u7248\u672c\u592a\u9ad8&#xff0c;\u4e00\u822c\u662f70.0.0&#xff0c;\u9700\u8981\u964d\u7ea7&#xff0c;\u76f4\u63a5 pip install setuptools&#061;&#061;68.2.2 \u5373\u53ef\u3002<\/p>\n<h3>7. \u51fa\u73b0 no kernel image is available<\/h3>\n<p>\u6b63\u5e38\u5b89\u88c5\u51fa\u73b0\u62a5\u9519&#xff1a;<\/p>\n<p>RuntimeError&#xff1a;CUDA error&#xff1a;no kernel image is available for execution on the device CUDA kernel errors might be asynchronously reported at some other API call, so ther stacktrace below might be incorrect.<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u5728\u672c\u4eba\u535a\u5ba2&#xff08;VMamba \u5b89\u88c5\u6559\u7a0b&#xff08;\u65e0\u9700\u66f4\u6539base\u73af\u5883\u4e2d\u7684cuda\u7248\u672c&#xff09;&#xff09;\u5df2\u7ecf\u63d0\u5230\u8fc7&#xff0c;\u662f\u56e0\u4e3aGPU\u7b97\u529b\u7684\u95ee\u9898\u3002causal-conv1d \u3001 mamba-ssm \u4ee5\u53ca vmamba \u5747\u6682\u65f6\u4e0d\u652f\u6301\u7b97\u529b\u4e3a6.1\u53ca\u4ee5\u4e0b\u7684\u8bbe\u5907&#xff0c;\u89e3\u51b3\u65b9\u6cd5\u89c1\u8fd9\u4e2a\u535a\u5ba2&#xff0c;\u9700\u8981\u91cd\u65b0\u4ece\u6e90\u7801\u8fdb\u884c\u7f16\u8bd1&#xff0c;\u4e0d\u80fd\u4e0b\u8f7d\u5b98\u65b9\u7684whl\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.7k\u6b21\uff0c\u70b9\u8d5e37\u6b21\uff0c\u6536\u85cf55\u6b21\u3002\u7531\u4e8e\u672c\u4eba\u7b2c\u4e00\u7bc7\u535a\u5ba2Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5\uff08\u521d\u7248\uff09Linux\u548cWindows\u7684\u95ee\u9898\u5939\u6742\uff0c\u4e0d\u6613\u67e5\u8be2\uff0c\u91cd\u65b0\u6574\u7406\u5728Linux\u4e0b\u6240\u6709\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002_\u5b89\u88c5mamba.whl\u6587\u4ef6\u7684\u65f6\u5019,\u6709abitrue\u548cabifalse,\u8fd9\u4e24\u79cd\u6587\u4ef6\u6709\u4ec0\u4e48\u533a\u522b<\/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":[3034,58,3035],"topic":[],"class_list":["post-35536","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-linux","tag-mamba"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \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\/35536.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.7k\u6b21\uff0c\u70b9\u8d5e37\u6b21\uff0c\u6536\u85cf55\u6b21\u3002\u7531\u4e8e\u672c\u4eba\u7b2c\u4e00\u7bc7\u535a\u5ba2Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5\uff08\u521d\u7248\uff09Linux\u548cWindows\u7684\u95ee\u9898\u5939\u6742\uff0c\u4e0d\u6613\u67e5\u8be2\uff0c\u91cd\u65b0\u6574\u7406\u5728Linux\u4e0b\u6240\u6709\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002_\u5b89\u88c5mamba.whl\u6587\u4ef6\u7684\u65f6\u5019,\u6709abitrue\u548cabifalse,\u8fd9\u4e24\u79cd\u6587\u4ef6\u6709\u4ec0\u4e48\u533a\u522b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35536.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-04T05:51:38+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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35536.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35536.html\",\"name\":\"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-04T05:51:38+00:00\",\"dateModified\":\"2025-05-04T05:51:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35536.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35536.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35536.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09\"}]},{\"@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 \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \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\/35536.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb7.7k\u6b21\uff0c\u70b9\u8d5e37\u6b21\uff0c\u6536\u85cf55\u6b21\u3002\u7531\u4e8e\u672c\u4eba\u7b2c\u4e00\u7bc7\u535a\u5ba2Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\u53ca\u89e3\u51b3\u65b9\u6cd5\uff08\u521d\u7248\uff09Linux\u548cWindows\u7684\u95ee\u9898\u5939\u6742\uff0c\u4e0d\u6613\u67e5\u8be2\uff0c\u91cd\u65b0\u6574\u7406\u5728Linux\u4e0b\u6240\u6709\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u3002_\u5b89\u88c5mamba.whl\u6587\u4ef6\u7684\u65f6\u5019,\u6709abitrue\u548cabifalse,\u8fd9\u4e24\u79cd\u6587\u4ef6\u6709\u4ec0\u4e48\u533a\u522b","og_url":"https:\/\/www.wsisp.com\/helps\/35536.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-04T05:51:38+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35536.html","url":"https:\/\/www.wsisp.com\/helps\/35536.html","name":"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-04T05:51:38+00:00","dateModified":"2025-05-04T05:51:38+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35536.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35536.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35536.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u4e0b Mamba \u73af\u5883\u5b89\u88c5\u8e29\u5751\u95ee\u9898\u6c47\u603b\uff08\u91cd\u7f6e\u7248\uff09"}]},{"@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\/35536","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=35536"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35536\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35536"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}