【发布时间】:2021-02-06 17:24:33
【问题描述】:
我很困惑。我在 GitHub 上找到了一个用 Python 制作的游戏并想尝试一下,所以我下载了文件。然后我安装了 Python,在本例中为 x86-32 3.8.3 windows。注意:我没有使用系统范围的安装选项,而是使用了单用户安装模式,因为我不需要提升。我将其设置为安装完整的安装,并且可以正常工作。 但是当我去运行游戏时,它说我没有安装 PyGame。我想,
没什么大不了的,我想我会安装 PyGame。
所以,我去 cmd,并在 pip 上搜索 PyGame。这是它的输出:
C:\Users\[username]>pip search pygame
ERROR: Exception:
Traceback (most recent call last):
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in main
status = self.run(options, args)
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\commands\search.py", line 48, in run
pypi_hits = self.search(query, options)
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\commands\search.py", line 65, in search
hits = pypi.search({'name': query, 'summary': query}, 'or')
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\xmlrpc\client.py", line 1109, in __call__
return self.__send(self.__name, args)
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\xmlrpc\client.py", line 1450, in __request
response = self.__transport.request(
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\download.py", line 1012, in request
return self.parse_response(response.raw)
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\xmlrpc\client.py", line 1341, in parse_response
return u.close()
File "c:\users\[username]\appdata\local\programs\python\python38-32\lib\xmlrpc\client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.">
现在,我不是专家,但我知道出了点问题。这是什么意思?我如何解决它?我不知道!就是这样,我不知道这是怎么发生的,考虑到 Python 安装期间没有错误,至少在我检查日志文件时是这样。
在我为之编程的 10 年里,我从未如此感到困惑。所以,帮我解决这个问题。
【问题讨论】:
标签: python exception pip pygame pypi