今天鼠鼠重装电脑,装完tensorflow和 pycharm后打开控制台报错,完整如下 :
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: 找不到指定的模块。
依稀记得之前也出过一样的错,忘了怎么解决。
网上找了很多方法,都不靠谱,最后找到一篇,地址如下:
import _ssl # if we can‘t import it, let the error propagate_Johana_C的博客-CSDN博客z
方法是找到下面两个文件,然后复制到环境目录下。
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
原贴两个文件是在D:\Anaconda3\envs\pytorch\bin目录下,我找了一下我的目录没有这两个文件。
好在有everything,在everything全盘查找了一下,最后在E:\anaconda\pkgs\openssl-1.1.1t-h2bbff1b_0\Library\bin找到了。其实在找到的同名文件有好几个(题主之前装的miniconda没卸干净),这个是最像的,复制到环境目录下后重启。
问题解决。