Python Multiprocessing error: AttributeError: module '__main__' has no attribute '__spec__'

前端 未结 3 1704
春和景丽
春和景丽 2020-12-06 00:15

I\'m using Python 3.6 and am trying to follow along with the very first example at the website below (full code also below) and am getting the below error: https://docs.pyth

3条回答
  •  长情又很酷
    2020-12-06 00:40

    pdb users

    The question didn't specifically mention Spyder nor Conda (though it is tagged as such). Hence, I will note that I found this can also happen when using pdb.

    E.g.

    python -m pdb myprogram.py

    Passing spec = None would be a useful workaround if you wanted to persist with pdb.

提交回复
热议问题