Livewires MacOS 中 'beginners' 的模块错误 - 初学者

Module error for 'beginners' in livewires MacOS - beginner

我是 python 的初学者,正在阅读一本名为 'Python programmming for the absolute beginner' 的书,但在导入 Livewire 时遇到问题。

当我写 from livewires import games 时弹出错误:

line 1, in <module>
from livewires import games
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/livewires/__init__.py", line 32, in <module>
from beginners import *
ModuleNotFoundError: No module named 'beginners'

我不确定如何处理这个问题,因为我已经对此进行了研究,但我还没有找到解决方案。

我安装livewires的方式(我已经安装了pygame)

pip install livewires

pip install superwires

似乎 LiveWires only supports Python 2. You may use SuperWires 而不是 LiveWires:

pip3 install superwires
from superwires import games  # Just replace `livewires` with `superwires`
参考资料