I’m trying to generate an executable. the packages I am using are
import sys
import matplotlib.pyplot as plt
from pylab import *
from numpy import *
the setup.py is the following
from distutils.core import setup
import py2exe
import matplotlib
setup(console=['<python file>'],data_files=matplotlib.get_py2exe_datafiles(),)
but I get an error related to pyplot.pyc
Import Error: no module named backend_tkagg
any way around to fix it?
You should include the matplotlib module explicitly.
If you do that you can get some errors from unavailable dlls, so then you should exclude them.
A setup that works for me with your file: