py2exe fails with pandas import

后端 未结 1 1012
北恋
北恋 2021-01-25 12:33

I have a python script that I want to make into an executable using py2exe. It fails when I try to import pandas (this is literally all I have in my example failing script):

相关标签:
1条回答
  • 2021-01-25 13:07

    It turns out that the solution is just resetting the recursion limit. So I added these lines to my setup.py file:

    import sys
    sys.setrecursionlimit(3000)
    

    Now the pandas import works just fine.

    0 讨论(0)
提交回复
热议问题