Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pyinstaller doesn't work in python 3.7 (can't find module 'encodings')

Tags:

I have test program below - I compiled the code with pyinstaller (Python ver 3.7b. windows 10 - 64bit) noticed warnings during compilations and error. I would appreciate any insight to resolving this issue.

Test.py
import encodings
print('Test')

Sample of Compilations Warning

102 INFO: PyInstaller: 3.3.1
102 INFO: Python: 3.7.0b1
104 INFO: Platform: Windows-10-10.0.14393-SP0
2771 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\apps\python\python37\python.exe
2801 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\apps\python\python37\python.exe

Error - executing the program Fatal Python error: initfsencoding:
unable to load the file system codec zipimport.ZipImportError:
can't find module 'encodings' Current thread 0x0000289c (most recent call first):

like image 209
joe Avatar asked Feb 19 '18 19:02

joe


1 Answers

I have the same error (zipimport.ZipImportError: can't find module 'encodings').

I think it has to do with Python 3.7 not supporting pyinstaller yet...

like image 71
Bernd Avatar answered Oct 12 '22 13:10

Bernd