Cython compiled C extension: ImportError: dynamic module does not define init function

前端 未结 8 1440
盖世英雄少女心
盖世英雄少女心 2020-12-12 23:48

I have just compiled part of my C library as an extension using Cython, as a \"proof of concept\". I managed to hack the code (const correctnes problems etc aside), to final

8条回答
  •  萌比男神i
    2020-12-13 00:27

    Another really late answer in my case I had accidentally called cython in a terminal that was running python2, while trying to use the generated library from a terminal that was on another python environment, using python3.

    Using the same python version everywhere fixed it.

提交回复
热议问题