题
我刚刚得到的Panda3D首次。我删除了包括Python版本。在我的Python目录,我把一个文件panda.pth
看起来像这样:
C:\Panda3D-1.6.2
C:\Panda3D-1.6.2\bin
但是当我运行import direct.directbase.DirectStart
,我得到:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import direct.directbase.DirectStart
File "C:\Panda3D-1.6.2\direct\directbase\DirectStart.py", line 3, in <module>
from direct.showbase import ShowBase
File "C:\Panda3D-1.6.2\direct\showbase\ShowBase.py", line 10, in <module>
from pandac.PandaModules import *
File "C:\Panda3D-1.6.2\pandac\PandaModules.py", line 1, in <module>
from libpandaexpressModules import *
File "C:\Panda3D-1.6.2\pandac\libpandaexpressModules.py", line 1, in <module>
from extension_native_helpers import *
File "C:\Panda3D-1.6.2\pandac\extension_native_helpers.py", line 75, in <module>
Dtool_PreloadDLL("libpandaexpress")
File "C:\Panda3D-1.6.2\pandac\extension_native_helpers.py", line 73, in Dtool_PreloadDLL
imp.load_dynamic(module, pathname)
ImportError: Module use of python25.dll conflicts with this version of Python.
我假定这有什么用Python 2.6和我一起做。任何解决方案?
解决方案
如果你能等待即将到来的1.7.0版本中,它将对Python的2.6编译 - 看的此线程。
其他提示
Python扩展不能跨主要版本二进制兼容的。您的选项是:
一个。重新编译的Panda3D为Python 2.6。
B中。使用Python 2.5。
没有办法解决它。
不隶属于 StackOverflow