I wrote a script and wanted to package it into an EXE file. It runs normally in the python compiler, but when packaged into an. EXE file, an error is reported. Lookuperror: unknown encoding: IDNA
Solution:
just import this module at the beginning of the script. This may be a coding problem. There is no in-depth study. Just solve it
Import encodings.idna
Read More:
- Lookuperror: unknown encoding: cp65001 when executing Python
- scrapy:LookupError: unknown encoding: ‘unicode’
- VIM setting file encoding format
- When using exe4j to generate exe executable file from jar, no JVM could be found on your system exception appears
- When idea executes the command, an error is reported: CreateProcess error = 2. The system cannot find the specified file
- Python2.7 IOError: [Errno 0] Error when the cmd encoding is utf-8
- R language packages installation failed: Error in install.packages: error reading from connection
- Errors occured, no packages were upgraded. ⇒ ERROR: Failed to install packages to new root.
- Cannot remove entries from nonexistent file /usr/local/bin/anaconda2/lib/python2.7/site-packages/eas
- Install python’s C extension compilation environment under windows (solve “error: command’cl.exe’ failed: No such file or directory”)
- Record the python package EXE file running error importerror, but do not prompt specific error solution
- Install Python C extension compiler environment under windows (solve “error: command” cl.exe ‘ failed: No such file or directory”)
- Python packaged *. Exe is running os.popen (cmd)/ subprocess.Popen *. Exe crashes with invalid [winerror 6] handle
- Link: fatal error LNK1104: cannot open file “debug”/ xx.exe The question of
- error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified.
- org.apache.jasper.JasperException: Unsupported encoding:
- Java prompt unmappable character for encoding solution
- The problem of failed to create process occurs in pyinstaller package program of Python
- Error occurred when Python installed the pocketsphinx module (package): Command‘ swig.exe “Failed: no such file or directory
- Unknown error in POM file of springboot project