Building wheels for collected packages: causal-conv1d
Building wheel for causal-conv1d (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
torch.__version__ = 2.5.1+cu121
running bdist_wheel
Guessing wheel URL: https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.1/causal_conv1d-1.1.1+cu122torch2.5cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
error: Remote end closed connection without response
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for causal-conv1d
Running setup.py clean for causal-conv1d
Failed to build causal-conv1d
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (causal-conv1d)
不是setuptools版本问题,就是服务器不能访问国外资源的问题,给其用魔法有点难,所以自己去下载对应版本的whl文件causal-conv1d==1.1.1(Release v1.1.1 · Dao-AILab/causal-conv1d),选择一个版本下载之后上传到服务器,之后使用pip install xxx.whl来安装,此时可能会出现报错:
ERROR: causal_conv1d-1.1.1+cu122torch2.2cxx11abiTRUE-cp39-cp39-linux_x86_64.whl is not a supported wheel on this platform.
这是因为whl文件文件名实际上对使用平台进行了限制,由于在上面一个报错中,需要下载的文件名字为Guessing wheel URL: https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.1/causal_conv1d-1.1.1+cu122torch2.5cxx11abiFALSE-cp311-cp311-linux_x86_64.whl,此时重命名上传的whl文件为causal_conv1d-1.1.1+cu122torch2.5cxx11abiFALSE-cp311-cp311-linux_x86_64.whl再重新使用pip install xxx.whl即可安装成功