Win10安装pytorch3d报错:error: command ‘C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.6\\bin

今天在安装pythorch3d时,报错D:/miniconda/envs/conda_barc/lib/site-packages/torch/include\c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign D:\miniconda\envs\conda_barc\lib\site-packages\torch\include\pybind11\cast.h(1429): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here D:\miniconda\envs\conda_barc\lib\site-packages\torch\include\pybind11\cast.h(1503): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here 2 errors detected in the compilation of "E:/download/pytorch3d-0.7.2/pytorch3d-0.7.2/pytorch3d/csrc/marching_cubes/marching_cubes.cu". error: command 'C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.6\\bin\\nvcc' failed with exit code 1

本人环境vs2019+cuda11.6+python3.8+pythorch3d 0.72。

参考博客链接,发现不是cuda或vs版本问题,修改cast.h后安装成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值