質問
私は初めて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でコンパイルされます - <のhref = "http://www.panda3d.org/phpbb2/viewtopic.php?p=42778&sid=d77e7708ac0d9d3f79c19c0fcd5c4621見ますnofollowをnoreferrer " "= REL">このスレッドでます。
他のヒント
Python拡張はメジャーリリース間でのバイナリ互換性がありません。次のオプションがあります:
A。 python 2.6のためにpanda3d再コンパイルします。
B。 python 2.5を使用します。
その周りまさかます。
所属していません StackOverflow