I'm trying to use the pyinstaller to pack my python file in to .exe, but I keep getting this error message.
win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System can not access the file')
I've tried running the cmd as administrator but it's still not working.
My operating system is Windows 10
I managed to solve the same problem by uninstalling python (installed from Microsoft store) and installing 3.8.2 from python.org.
I had the same problem. Just move your python file in your C:\Users\batman\AppData\Local\Programs\Python\Python38-32\Scripts
folder where you can also find pyinstaller.exe
and run the windows command prompt there and try again!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With