我为python编写了一个ac库作为导入的.so对象。在内部,我使用PyCapsules操纵C结构或使用C函数,并且效果很好。我想使用multiprocessing.Pool对我的.so库中的函数用法进行并行化处理。似乎是多处理。池不能腌制PyCapsules:
cPickle.PicklingError: Can't pickle <type 'PyCapsule'>: attribute lookup __builtin__.PyCapsule failed
Run Code Online (Sandbox Code Playgroud)
是否有人知道有解决方法?谢谢。