1.值得注意的是,我的环境变量添加和他有所不同,剩下的都一样:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\libnvvp
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\cudnn\bin
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\extras\CUPTI\libx64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin
需要把以上环境变量置顶
参考了这个博主教程: 点击这里
报错:
FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version
解决方案
解决方案:
pip install protobuf==3.19.0