我正在用我的一本课本自学python,我已经快读完这本书了。但它要求我为课程的项目安装pygame和livewire。一段时间后,我安装了pygame,它工作得很好,但我无法让livewires正常工作,我通过在命令提示符下输入"pip install LiveWires“来安装它,但当我试图在python shell中导入模块游戏时,我得到了这个错误:
Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> from livewires import games File "C:\Users\young\AppData\Local\Programs\Python\Python39-32\lib\site-packages\livewires\__init__.py", line 32, in <module> from beginners import * ModuleNotFoundError: No module named 'beginners'
有没有其他方法可以安装这个包?有没有解决这个问题的办法?任何帮助都是非常感谢的。
发布于 2021-02-06 06:11:05
您可以将其与依赖模块一起安装。此外,您可能需要更新版本的superwires,而不是livewire。Livewire对我来说可以处理错误,但superwires很好。对于Linux:
sudo apt install python3-pip
sudo apt install python3-pygame
pip3 install livewires
pip3 install superwireshttps://stackoverflow.com/questions/65585994
复制相似问题