PyCharm中generator报SystemError的解决办法

  • 环境:

PyCharm 2018,Python 3.6+

  • 问题:

Debug模式下调试CS20si中词嵌入例子word2vec报错:

Exception ignored in: <generator object _yield_value at 0x0000011ACEDF22B0>
Traceback (most recent call last):
  File "E:\Anaconda3\envs\ML\lib\site-packages\tensorflow\python\data\util\nest.py", line 100, in _yield_value
    yield value
SystemError: error return without exception set
  • 解决办法:

在Run->Edit Configurations中添加Environment variable:

  • PYDEVD_USE_FRAME_EVAL=NO
    原文作者:tech0ne
    原文地址: https://www.jianshu.com/p/1f9e6e9e02c0
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞