【已解决】ImportError: DLL load failde:找不到指定模块

问题:

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

解决方法:

环境变量中加入Anaconda的三个路径(依照自己当初设置的路径):
D:\Users\lenovo\Anaconda3;
D:\Users\lenovo\Anaconda3\Scripts;
D:\Users\lenovo\Anaconda3\Library\bin;

参考:
Can’t install any package via pip on windows 10, ssl module in Python is not available

你可能感兴趣的:(python)