‘C:\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.1\\bin\\nvcc.exe‘ failed with exit code 2 | 您所在的位置:网站首页 › code=2 › ‘C:\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.1\\bin\\nvcc.exe‘ failed with exit code 2 |
下载torchlars时的出现的bug详情:error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin\nvcc.exe’ failed with exit code 2
背景
windows10 Python 3.7 PyTorch 1.8.1 CUDA 11.1 虚拟环境miniconda 目的为了下载GitHub上的torchlars包 触发bug将代码包下载到工程文件夹下 输入指令:python setup.py build develop bug 详细描述fatal error C1189: #error: – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin\nvcc.exe’ failed with exit code 2 解决方案下载了 Microsoft Visual Studio 2019 问题解决,由于 Microsoft Visual Studio version不匹配导致该错误 结果
|
CopyRight 2018-2019 实验室设备网 版权所有 |