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

前端 未结 3 1706
春和景丽
春和景丽 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:39

    the same probelm in Spyder (Anaconda3, python 3.6) when I try the external terminal.

    Error message: AttributeError: module '__main__' has no attribute '__spec__'
    

    I changed the Run console to 'Excute in current console', and applied it. then if that doesnot work, try other conselor and then change back to 'Excute in current console'. Finally, it works. no '__spec__ = None' is needed.

提交回复
热议问题