panda 3d导入模块错误

发布于 2024-12-19 15:01:05 字数 175 浏览 3 评论 0原文

我正在尝试学习 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如歌彻婉言 2024-12-26 15:01:05

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 to C:\[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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文