Error loading Python DLL

45 views
Skip to first unread message

Gary Su

unread,
Aug 14, 2020, 5:43:11 AM8/14/20
to PyInstaller
hi guys!
I'm using PyInstaller to freeze a py file into an exe.
the version of my env:
python3.7(Anaconda win64)
mayavi4.7.1
pyqt4
pyinstaller4.1.dev0

the exe file can be produced,but when i try to execute it , it says 
"Error loading Python DLL 'C:\Users\LENOVO\AppData\Local\Temp\_MEI170202\python37.dll'.
LoadLibrary: 找不到指定的模块。"
but i cant even find the reported folder.In the spec file , I already put the location of python37.dll in the"binaries".
I have searched for the solutions and tried lots of solutions online but in vein. Can anybody plz help me?
(I have also tried with py36 and other combination of the packages raised in the forums online, but all got the same results.)

bwoodsend

unread,
Aug 14, 2020, 7:03:59 AM8/14/20
to PyInstaller
That's never going to happen.

- PyInstaller doesn't get on with Anaconda - especially anything including Conda's numpy.
- mayavi does all kinds of things PyInstaller can't cope with (dynamic imports, modules in zip files, dynamically generated code etc) - you'll never freeze it.
- PyQt4 is long deprecated and it's support from PyInstaller has been dropped and no longer works.

Reply all
Reply to author
Forward
0 new messages