📜  无法腌制模块对象 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:25.102000             🧑  作者: Mango

代码示例1
You can't pickle an entire module, you'll have to break the module up
into the attributes you need, for example this problem occured to me when
I was trying to multiprocess opencv2, instead of sending in the whole
module I just sent in the attributes: waitKey, imshow, imread and
destroyAllWindows, so the system only has to pickle those functions
rather than the whole module which worked out.