安装Panda3d以使用python运行

发布于 2024-09-10 15:07:21 字数 578 浏览 1 评论 0原文

我运行的是 Ubuntu 10.04,我安装了 python 并且运行良好。当我从站点的 deb 包安装 pand3d 并尝试运行示例时。就像本页描述的那样:

http://www.panda3d.org/manual/index.php/Installing_Panda3D_in_Linux

我收到错误:

回溯(最近一次调用最后一次):

文件“Tut-Asteroids.py”,第 13 行,位于

导入 direct.directbase.DirectStart

导入错误:没有名为 direct.directbase.DirectStart 的模块

在与上面相同的页面中,有关于如何解决这个错误。但我不明白我需要做什么。

谁能告诉我我需要做什么?

I am running Ubuntu 10.04, I have python installed and running fine. When I installed pand3d from the deb package from the site and tried to run an sample. Like it is describe in this page:

http://www.panda3d.org/manual/index.php/Installing_Panda3D_in_Linux

I got the error:

Traceback (most recent call last):

File "Tut-Asteroids.py", line 13, in

import direct.directbase.DirectStart

ImportError: No module named direct.directbase.DirectStart

In the same page as above there is a description to how to solve this error. But I don't understand what do I need to do.

Can any one tell-me what do I need to do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

无畏 2024-09-17 15:07:21

找到了答案。我安装了两条蟒蛇。一个在 /usr/bin 中,另一个在 /usr/local/bin 中。结果我需要使用 /usr/bin 版本来运行我需要的东西。希望这对其他人有帮助!

Found the answer. I had two pythons installed. One in /usr/bin and the other in /usr/local/bin. Turn out I needed to use the /usr/bin version to run what I needed. Hope this helps other!

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