我有一个库,它由 3 个文件组成,这些文件打算放在站点 python 目录中。
FbxCommon.py
fbxsip.so
fbx.so
Run Code Online (Sandbox Code Playgroud)
一旦这些文件就位,Python 就可以看到fbxpackage.json。这个系统如何运作?SO里面的文件是什么?
如果它是一个 DLL,它怎么可能与 python 版本相关(它适用于 python 3.3,但不适用于 python 3.5)
更新
区分代码如下
from fbx import *
lSdkManager = FbxManager.Create()
Run Code Online (Sandbox Code Playgroud)
在 Python 3.3 上它什么也不做,而在 Python 3.5 上它会抛出此错误:
Traceback (most recent call last):
File "/opt/pycharm-2017.2.2/helpers/pydev/pydevd.py", line 1599, in <module>
globals = debugger.run(setup['file'], None, None, is_module)
File "/opt/pycharm-2017.2.2/helpers/pydev/pydevd.py", line 1026, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/opt/pycharm-2017.2.2/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, …Run Code Online (Sandbox Code Playgroud)