开发者

Install Panda3d to run with python

开发者 https://www.devze.com 2023-01-07 08:53 出处:网络
I am running Ubuntu 10.04, I have python installed and running fine. When I installed pand3d from the de开发者_运维百科b package from the site and tried to run an sample. Like it is describe in this p

I am running Ubuntu 10.04, I have python installed and running fine. When I installed pand3d from the de开发者_运维百科b 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?


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号