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.
Find this dir "E:\Anaconda3\Lib\site-packages\PyInstaller\hooks". Add a file "hook-pandas.py",wrie this content to this file:
"""
Hook for pandas.
Suport for pyinstaller error : No module named ‘pandas._libs.tslibs.timedeltas
"""
hiddenimports=[
#all your previous hidden imports
'pandas', 'pandas._libs.tslibs.timedeltas',
'sklearn.neighbors.typedefs'
]
Then use this command:
pyinstaller -F myfile.py --hidden-import sklearn.neighbors.typedefs
Then it will be OK!