Ubuntu 20.04中没有Pygame示例

Ubuntu 20.04中没有Pygame示例,pygame,Pygame,我想学习如何在Pygame(python3.8.5,Ubuntu 20.04)中编写代码。我安装了pygame,但它可以找到示例。我试图手动搜索它们,但也没有找到。这些示例似乎根本没有安装 以下是我到目前为止所做的: 由于大量失败的依赖项,尝试使用pip安装pygame失败 python3 -m pip install -U pygame --user 搜索一段时间后,我找到了这个命令,它安装了pygame: sudo apt install python3-pygame 但当我尝试运行其中

我想学习如何在Pygame(python3.8.5,Ubuntu 20.04)中编写代码。我安装了pygame,但它可以找到示例。我试图手动搜索它们,但也没有找到。这些示例似乎根本没有安装

以下是我到目前为止所做的:

由于大量失败的依赖项,尝试使用pip安装pygame失败

python3 -m pip install -U pygame --user
搜索一段时间后,我找到了这个命令,它安装了pygame:

sudo apt install python3-pygame
但当我尝试运行其中一个示例时,它失败了:

user:~$ python3 -m pygame.examples.aliens

pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
/usr/bin/python3: Error while finding module specification for 'pygame.examples.aliens' (ModuleNotFoundError: No module named 'pygame.examples')
你知道怎么了吗


谢谢

Ubuntu软件包维护者选择在python3 pygame中使用。测试和文档也被排除在外

您可以从github存储库访问