This note applies to Panda3d ver 1.7.0 and PythonXY ver 2.6.2 on a windows system.
- Install PythonXY.
- Install Panda3D, however do NOT set it as the default python interpreter.
- Add a ‘pth’ file to the python site-packages directory. I created a file named panda.pth and saved it at “C:\Python26\Lib\site-packages”. The file had the following contents:
C:/Panda3D-1.7.0
C:/Panda3D-1.7.0/bin
To check that the installation works, use an example from the Panda3D manual.
from direct.showbase.ShowBase import ShowBase class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) app = MyApp() app.run()
thanks!!! very useful
ReplyDelete