python3在windows系统下报ImportError: DLL load failed: 找不到指定的模块。

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

anaconda,windows系统,安装完ssl后,请求https地址,一直报一下错误:

Traceback (most recent call last):
  File "F:/xiaohua/venv/Include/csdn.py", line 3, in <module>
    import ssl
  File "F:\gongju\Anaconda3\lib\ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: DLL load failed: 找不到指定的模块。

网上的方法尝试了很多,大多都是在Linux系统下的配置。
最后发现在windows系统中是因为anaconda安装时少配了一个环境变量
需要配置一下三个系统环境变量:

F:\gongju\Anaconda3
F:\gongju\Anaconda3\Scripts
F:\gongju\Anaconda3\Library\bin

猜你喜欢

转载自blog.csdn.net/qq_34988304/article/details/88739484