检查pip有没安装cryptography,pyOpenSSL,certifi要是没有先安装 pip install cryptography pip install pyOpenSSL pip install certifi 我安装完上述三个包后就解决问题了。