cx_freeze Matplotlib issue

201 Views Asked by At

There seems to be a few people who are struggling to build Python executables that use the Matplotlib library.

I am using CX_Freeze and can create a executable for my GUI without the graphs, but when the graphs with the matplolib library are added, when I try to run the executable I get error:

from .import _methods ImportError: cannot import name '_methods'

Has anyone managed to get this working?

1

There are 1 best solutions below

0
On

Add this line to your setup.py file:

addtional_mods = ['numpy.core._methods']