ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based projects
**
在安装pycuda时一直出错,比如我遇到的报错:
**
ERROR: Failed building wheel for pycuda
Failed to build pycuda
ERROR: Could not build wheels for pycuda, which is required to install pyproject.toml-based projects
补充:
进入下载pycuda库所在的目录下进入CMD环境:
我是连接的服务器安装的,也就是说我本地是windows,服务器是linux。首先,我用windows下载了他博客中提到的whl文件,然后把文件通过MobaXterm把文件传到我项目所在的目录下面,然后在项目中新建终端(我用的VScode),输入:
pip install pycuda
静待安装成功!
安装过程中的小插曲
上文作者提到的出现原因:pip默认安装最新版,导致pycuda版本和系统版本不对应!然后我就看我的CUDA内核版本,发现是11.7!
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |