我正在使用python 3.6.8和pip3进行2D游戏。一切都很好。然后我下载并安装了python 3.8。现在,点子根本不起作用。这些是我在运行“ pip3 install arcade”时遇到的错误:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting arcade
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/arcade/
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/arcade/
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/arcade/
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/arcade/
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/arcade/
Could not fetch URL https://pypi.org/simple/arcade/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/arcade/ (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 arcade (from versions: none)
ERROR: No matching distribution found for arcade
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 :(得分:1)
错误非常明显。 ssl
模块已损坏,因此无法连接到HTTPS站点(如PyPI)。也许您安装了错误的Python版本,或者它是在运行时依赖于您没有兼容版本的库(如OpenSSL)的基础上构建的。没有更多信息,我们无法知道导致问题的原因,仅是您安装的Python 3.8损坏了。
如果还没有适用于Python 3.8的Mint程序包,则可以随时build it from source,但请确保先安装所有依赖项,否则最终将再次安装失败。