Python multiprocessing PicklingError: Can't pickle

前端 未结 8 720
故里飘歌
故里飘歌 2020-11-22 03:48

I am sorry that I can\'t reproduce the error with a simpler example, and my code is too complicated to post. If I run the program in IPython shell instead of the regular Pyt

8条回答
  •  春和景丽
    2020-11-22 03:59

    I have found that I can also generate exactly that error output on a perfectly working piece of code by attempting to use the profiler on it.

    Note that this was on Windows (where the forking is a bit less elegant).

    I was running:

    python -m profile -o output.pstats 
    
                                     
                  
提交回复
热议问题