运行 Street pyghter 的问题 - 1.2

Problems runing Street pyghter - 1.2

我正在尝试 运行 this project 在我的 Raspberry Pi 4 上,但是有一些错误,比如一些文件丢失,变量未定义。

我尝试更改并修复问题,但仍然无法正常工作。

有人有从零开始构建一个或新版本的教程吗?

在创建我自己的或克隆的每个项目中,在终端上给我这个错误:

Hello from the pygame community. https://www.pygame.org/contribute.html /home/pi/Desktop/pygame/main.py:3: RuntimeWarning: use font: libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory (ImportError: libSDL2_ttf-2.0.so.0: cannot open shared object file: No such file or directory) pygame.font.init() Traceback (most recent call last): File "/home/pi/Desktop/pygame/main.py", line 3, in <module> pygame.font.init() File "/home/pi/.local/lib/python3.7/site-packages/pygame/__init__.py", line 59, in __getattr__ raise NotImplementedError(missing_msg)

我在Raspberry Pi解决了,从零开始设置,把micro SD卡里的都删了再安装Raspberry PiOS,问题是我试着安装在终端 pygame 但已经安装在 Raspberry Pi 上,所以可能是安装过程中的错误。