Your compiler (cl 19.00.24210) may be ABI-incompatible with PyTorch!

Your compiler (cl 19.00.24210) may be ABI-incompatible with PyTorch!
最近在跑deep snake项目代码。
可以看看我的另一篇博客:新手跑deep snake(巨详细)
然后在使用Cuda编译库lib/csrc发现了这个问题,然后百度了很久都没找到具体的解决措施。
一开始是这个问题:

E:\Python\Lib\site-packages\torch\utils\cpp_extension.py:189: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
 warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))

意思是找不到cl.exe文件。然后我把cl.exe所在的目录C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64加到系统变量Path后面后,这个警告就变成了:

running build_ext
________________windows operation system ______________________
________________compiler info: b'Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x64\r\nCopyright (C) Microsoft Corporation.  All rights reserved.\
r\n\r\nusage: cl [ option... ] filename... [ /link linkoption... ]\r\n'
E:\Python\lib\site-packages\torch\utils\cpp_extension.py:194: UserWarning:

                               !! WARNING !!

!!
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值