panda 3d importing module error

安稳与你 提交于 2019-12-10 15:54:57

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8370559/panda-3d-importing-module-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!