报错信息:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用。
解决办法:
安装OpenSSL v1.1版本。
下载网址:Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions
https://slproweb.com/products/Win32OpenSSL.html安装3M大小V1.1版本的那个,如图: 
安装完成后,如下图,取消所有勾选,点击finish完成。

再次尝试pip命令,正常不报错
pip list ;pip install xxx。
成功解决。
当遇到pip报错提示'pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.'时,解决方案是安装OpenSSL v1.1。可以从指定网址下载并安装Win32/Win64 OpenSSL Installer,安装完成后取消所有勾选并完成安装。重新运行pip命令,问题即可得到解决。
1033

被折叠的 条评论
为什么被折叠?



