I just created a small GUI program that compiles and works fine in IPython, but when I try to export it to a .exe
using pyinstaller it gives me an import error. I'm sure it's sklearn
because when I comment out the sklearn
imports my file open fine when I build it.
C:UsersChrisAnaconda>C:/Users/Chris/Anaconda/dist/Room_Test.exe
WARNING: file already exists but should not: C:UsersChrisAppDataLocalTemp\_MEI100402Includepyconfig.h
Traceback (most recent call last):
File "<string>", line 9, in <module>
File "C:UsersChrisAnacondaLibsite- packagesPyInstallerloaderpyi_importers.py", line 270, in load_module
exec(bytecode, module.__dict__)
File "C:UsersChrisAnacondauildRoom_Testout00- PYZ.pyzsklearn.neighbors", line 6, in <module>
File "C:UsersChrisAnacondaLibsite- packagesPyInstallerloaderpyi_importers.py", line 409, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
File "dist_metrics.pxd", line 48, in init sklearn.neighbors.ball_tree (sklearn
eighborsall_tree.c:35726)
File "C:UsersChrisAnacondaLibsite- packagesPyInstallerloaderpyi_importers.py", line 409, in load_module
module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
File "dist_metrics.pyx", line 52, in init sklearn.neighbors.dist_metrics (sklearn
eighborsdist_metrics.c:25494)
ImportError: No module named typedefs
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…