Error compiling Cython file:
------------------------------------------------------------
...
cimport libc.math
cpdef float main():
cdef float v0
v0 = 10.000000
return libc.math.logf(v0)
^
------------------------------------------------------------
cython_experiments\test3\testm.pyx:5:20: cimported module has no attribute 'logf'
它应该在 the module 中,但由于某种原因,它似乎在我的系统中丢失了。它在哪里?
虽然有常规的 libc.math.log
函数。
我在 Windows 10 上使用来自 Anaconda 发行版的 Cython 0.29.21。