I am creating a Windows EXE using cx_freeze, Python3 and the Scipy installation from lfd.uci.edu. Upon running the exe, I receive the error: ImportError: cannot import name nonlin
.
The Scipy file line this references, in site-packages\scipy\optimize_root.py: from . import nonlin
.
I can load a console with Python, and successfully run import scipy.optimize.nonlin
.
Adding scipy.optimize.nonlin to my setup.py includes doesn't solve the problem.
nonlin.py is located in the optimize directory in my scipy install, and its corresponding location as a compiled file in the library file cx_freeze generates.