Windows 10 pip 出现'SSL module in Python is not available'的解决方法

Windows10将Anaconda3升级并将Python由3.6升级到3.7.1。在powershell中使用pip安装第三方包的时候出现如下错误:

SSL module in Python is not available
而且也无法导入SSL module

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

经过一番的网上查找资料
明确问题原因在于windows10缺少openssl或者版本过低.也许是python 3.7.1跟系统还有些不兼容的问题。
到下面网址下载一个openssl的安装包
OpenSSL

Installation Step1

Installation Step2
Installation Step3

安装完成后就可解决问题了。

你可能感兴趣的:(Windows 10 pip 出现'SSL module in Python is not available'的解决方法)