运行setup.py时报错:
Error compiling Cython file:
…
from libc.stdlib cimport malloc, free
from libc.stdio cimport sprintf
from libc.string cimport strlen
cimport c_region
toolkit\utils\region.pyx:11:8: ‘c_region.pxd’ not found
原因是cython版本问题,工具使用的是cython2,而2023年10月份的cython是3版本,将版本装回2版本可解决:
下面展示一些 内联代码片
。
pip install Cython==0.29.21