>>> 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