报错详情1(pip install mamba/causal_conv1d):
Preparing metadata (setup.py) ... errorerror: subprocess-exited-with-error× python setup.py egg_info did not run successfully.│ exit code: 1╰─> [13 lines of output]/tmp/pip-install-mmt2v3fk/causal-conv1d_3dae5389c7de49328f7ec39ef9764010/setup.py:113: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.warnings.warn(Traceback (most recent call last):File "<string>", line 2, in <module>File "<pip-setuptools-caller>", line 34, in <module>File "/tmp/pip-install-mmt2v3fk/causal-conv1d_3dae5389c7de49328f7ec39ef9764010/setup.py", line 185, in <module>if bare_metal_version >= Version("11.8"):NameError: name 'bare_metal_version' is not definedtorch.__version__ = 2.0.1[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed× Encountered error while generating package metadata.
╰─> See above for output.note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
报错详情2(python setup.py install):
torch.__version__ = 2.0.1/public/home/potato/Mamba-SVSR/Vim/causal_conv1d/setup.py:77: UserWarning: causal_conv1d was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.warnings.warn(
Traceback (most recent call last):File "/public/home/potato/Mamba-SVSR/Vim/causal_conv1d/setup.py", line 111, in <module>if bare_metal_version >= Version("11.8"):
NameError: name 'bare_metal_version' is not defined
以上两个错误都是Cuda版本小于11.8引起的,可以在官网下载Cuda-11.8配置环境变量解决,也可以使用以下命令:
conda install -c “nvidia/label/cuda-11.8.0” cuda-nvcc
致谢这篇博客点击详情!