问题描述:
在安装Mamba的过程中,我们会根据教程安装依赖项:pip install causal-conv1d和pip install mamba-ssm,在绝大多数情况下,都会报错以下内容:
error: subprocess-exited-with-error
error: metadata-generation-failed
❌ Encountered error while generating package metadata
note: this is an issue with the package mentioned above, not pip
解决方案:
首先检查CUDA版本是否与安装包的要求一致,没问题后请执行以下步骤:
从官网下载版本对应的 .whl
文件 ,下载地址:链接: https://github.com/Dao-AILab/causal-conv1d/releases 和 链接: https://github.com/state-spaces/mamba/releases 选择对应的版本下载到本地
)
将下载好的.whl
文件放入代码项目下,运行命令:pip install whl文件路径 whl文件名
即可解决
![Alt](https://img-home.csdnimg.cn/images/20220524100510.png
这样就可以继续安装Mamba仓库了!