How to Import compiled libs (pyd) in python
<p>I could not get a working example of importing a compiled library (pyd file) in Python.</p>

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

<p>In the source code I have 
import bpy</p>

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

<p>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.</p>

<p>Thanks!</p>

<p>Found the error:
the pyd file was compiled with a 32 bit Python, was called with a 64 bit Python </p>

python python-3.x bpy