undefined symbol: nvrtcGetProgramLogSize

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/huuuuuuuu/article/details/88798206

莫名其妙 import torch,出现undefined symbol: nvrtcGetProgramLogSize错误
解决方法:

  1. 卸载
    conda uninstall pytorch
    conda uninstall libtorch
    pip uninstall torch
    pip uninstall torch # 两遍
  2. 安装
    conda install pytorch cuda80 -c soumith
    (不要用conda install pytorch)

猜你喜欢

转载自blog.csdn.net/huuuuuuuu/article/details/88798206