How to Import compiled libs (pyd) in python

时间:2016-08-31 18:13:47

标签: python python-3.x bpy

I could not get a working example of importing a compiled library (pyd file) in Python.

I compiled the blender source code, result is a bpy.pyd file. This file is placed in the python\lib folder.

In the source code I have import bpy

The file is found at runtime, but I get a runtime error that the module could not be imported

Does someone have a good documentation on importing compiled python modules? I searched ~100 entries, but only general definitions on how to do this. I trued all suggestions without success.

Thanks!

1 个答案:

答案 0 :(得分:0)

发现错误: pyd文件是用32位Python编译的,用64位Python调用