安装pytorch-gpu 成功之后,显示import _ssl # if we can’t import it, let the error propagate???ImportError: DLL load failed解决办法
**问题描述:**本人已成功安装pytorch-gpu ,在pycharm中设置了编译环境之后,import torch显示import _ssl # if we can’t import it, let the error propagate???ImportError: DLL load failed: 找不到指定的程序:即ssl模块导入失败,经网上大量寻找,有一种简单有效的方法供大家参考。
解决办法:将pytorch-gpu安装路径\envs\pytorch_gpu\Library\bin下的libssl-1_1-x64.dll and libcrypto-1_1-x64.dll两个动态链接文件直接剪切C:/Windows/System32/下面,经试,成功解决。参考:Python3.7.5 ssl模块导入失败的解决办法