嗨,我已经安装了Anaconda / jupyter笔记本,但是有错误
这是出现的文字
C:\Users\DELL>pip install pygame
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pygame/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pygame/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pygame/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pygame/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pygame/
Could not fetch URL https://pypi.org/simple/pygame/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pygame/
(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pygame (from versions: none)
ERROR: No matching distribution found for pygame
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/
(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
答案 0 :(得分:0)
尝试以下
pip install pygame==1.9.6release --allow-external pygame --allow-unverified pygame.
答案 1 :(得分:0)
您使用的python似乎没有使用ssl支持(because SSL module is not available
)进行编译。
由于pypi.org使用SSL,因此您将无法从那里安装软件包。
答案 2 :(得分:0)
我和您一样面临着同样的问题。我尝试了很多事情,只有一个可行。 该问题可能是由 Windows \ System32 文件夹中的DLL归档引起的(例如libcrypto-1_1-x64.dll,libssl-1_1-x64.dll或其他文件)。
解决方案是从https://slproweb.com/products/Win32OpenSSL.html安装openSSL,它将DLL替换为升级版本。
希望它能起作用!
答案 3 :(得分:0)
大家好,答案是我没有使用CMD,而是使用了Anaconda Powershell提示,效果很好。没有SSl错误