WARNING: pip is configured with locations that require TLS/SSL

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.


在PyCharm安装pygame失败
在cmd输入pip install pygame出现WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
在网上收集众多资料,失败了很多次,最后发现原因是没有安装openssl。

原因:没有安装openssl
解决方法:到https://slproweb.com/products/Win32OpenSSL.html上下载winopessl,下载第一个MSI安装,之后再PyCharm上安装pygame成功
WARNING: pip is configured with locations that require TLS/SSL