Errors with Matplotlib when making an executable with Py2exe (Python)

后端 未结 1 2017
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-21 17:50

I have a problem when trying to make an executable with a Python application.

For doing this, I\'m using Py2exe with the 2.7 version of Python.

My applicatio

相关标签:
1条回答
  • 2020-12-21 18:22

    You will need to copy the mpl-data folder too. Check this official wiki site http://www.py2exe.org/index.cgi/MatPlotLib

    import matplotlib
    ...
    setup(
        ...
        data_files=matplotlib.get_py2exe_datafiles(),
    )
    

    You will need something like this in your setup.py for py2exe. hope it helps.

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