panda 3d导入模块错误
我正在尝试学习 panda 3d,但出现此错误
importerror no module named direct.showbase.showbase
我在 windows xp 上使用最新版本的 panda 3d 1.7.2、python 2.7,如何修复该错误?
I'm trying to learn panda 3d, but I'm getting this error
importerror no module named direct.showbase.showbase
I'm using the latest versions of panda 3d 1.7.2, python 2.7 on windows xp, how to fix the error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.panda3d.org/forums/viewtopic.php?t=10363
Windows 上的 Panda 3D 附带了一个特殊版本的 Python,该版本已预先配置为可与 Panda 正常工作,该 Python 与
ppython
一起运行。否则,您需要将 Panda 库从 Panda 安装添加到您的 Python 路径。有一个名为
panda3d.pth
的文件,其中包含所需的 python 路径,您可以将该文件复制到C:\[Python Version]\Lib\site-packages
。我不知道 Panda3d 的 python 版本是什么,但如果您不想使用
ppython
,则需要运行它。http://www.panda3d.org/forums/viewtopic.php?t=10363
Panda 3D on Windows comes with a special version of python that is preconfigured to work correctly with Panda, that python is run with
ppython
.Otherwise you need to add the Panda libraries to your Python path from the Panda install. There is a file called
panda3d.pth
which has the python path necessary, and you can copy that file toC:\[Python Version]\Lib\site-packages
.I don't know what Panda3d's version of python is, but you will need to be running that if you don't want to use
ppython
.