Python rpy2 and matplotlib conflict when using multiprocessing

前端 未结 5 1898
误落风尘
误落风尘 2021-02-07 14:14

I am trying to calculate and generate plots using multiprocessing. On Linux the code below runs correctly, however on the Mac (ML) it doesn\'t, giving the error below:



        
5条回答
  •  天命终不由人
    2021-02-07 15:00

    This might be rpy2-specific. There are reports of a similar problem with OS X and multiprocessing here and there.

    I think that using an initializer that imports the packages needed to run the code in plot could solve the problem (multiprocessing-doc).

提交回复
热议问题