我一直在尝试在Mac上的Jupyter Notebook中的Cython中使用unordered_sets。
%%cython -a -3
# distutils: language = c++
# cython: c_string_type=unicode, c_string_encoding=utf8
import cython
from libcpp.unordered_set cimport unordered_set
def test():
cdef unordered_set[int] s
return s
上面的单元格抛出: DistutilsExecError: command 'gcc' failed with exit status 1
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句