Ctrl-C crashes Python after importing scipy.stats

后端 未结 7 2174
孤街浪徒
孤街浪徒 2020-12-03 02:38

I\'m running 64-bit Python 2.7.3 on Win7 64-bit. I can reliably crash the Python interpreter by doing this:

>>> from scipy import stats
>>>         


        
7条回答
  •  眼角桃花
    2020-12-03 03:09

    This worked for me:

    import os
    os.environ['FOR_DISABLE_CONSOLE_CTRL_HANDLER'] = '1'
    from scipy.stats import zscore
    

提交回复
热议问题