Win32ctypes. Pywin32. Pywintypes. Error: (2 ‘loadlibraryex’,’the system can’t find the specified file. ‘)
catalogue
Win32ctypes. Pywin32. Pywintypes. Error: (2 ‘loadlibraryex’,’the system can’t find the specified file. ‘)
Questions
Solution
Questions
Using pyinstaller to package py file as windows exe program, the following problems are encountered:
Win32ctypes. Pywin32. Pywintypes. Error: (2, ‘loadlibraryex’,’the system can’t find the specified file. ‘)
Stack overflow and CSDN, you can see all kinds of things
Some say that virtual environment must be used, but I don’t believe it;
Some people say that you must use native Python environment (not Anaconda or other integrated environment), but I don’t believe it;
Some people say that it may be caused by the too low and too high version of Python;
Some people say that maybe your version of pyinstaler is too high. Let’s have a try. I believe it;
#The following error occurred
Win32ctypes. Pywin32. Pywintypes. Error: (2, ‘loadlibraryex’,’the system can’t find the specified file. ‘)
#It is suspected that the temporary file in the original build interferes with the new build. After deleting the temporary file, it continues to build, and the same error still exists;
Solution
#Check on stack overflow and CSDN. There are all kinds of things to say. Finally, we adopted the method of reducing the version and succeeded
# pip install pyinstaller==3.5
# pyinstaller -F prediction.py
#The file structure after packaging is as follows:
#The prediction.exe file generated by the package is stored in the dist directory
Reference: pythoninstaller
Reference: packaging with pyinstaler failed. Error: win32ctypes. Pywin32. Pywintypes. Error: (1920, ‘loadlibraryexw’,’the system cannot access this file. ‘)
Reference: pitfalls encountered by Python pyinstall packaging tool
Reference: pyinstaller win32ctypes. Pywin32. Pywintypes. Error: (2, ‘loadlibraryexw’,’the system cannot find the file specified. ‘)
Reference: pyinnstaller win32ctypes. Pywin32. Pywintypes. Error: (1920, ‘loadlibraryexw’,’system cannot access the file ‘)
Read More:
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- Error in installing pywin32 under Windows: close failed in file object D estructor:sys.excepthook is missing lost sys.stderr
- Win10 can not open the picture, file system error (- 214721996) repair method
- Solution to prompt “system group policy forbids installation of this device” in win10 system
- WindowsError: [Error 2] The system cannot find the file specified
- [error] OpenEvent(“Global\ngx_reload_11812“) failed (2: The system cannot find the file specified
- Win10 system virtual machine installation of Ubuntu system failed, prompt: UBI language failed with exit code 1
- EEROR:Windows named pipe error: The system cannot find the file specified. (code:2)
- Quickly solve the problem of Vmware virtual machine “\\.\Global\vmx86”: the system cannot find the specified file
- Ctypes loading DLL error oserror: [winerror 126] the specified module could not be found
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- Installing xgboost in anaconda is based on win10 32 / 64 bit system
- error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified.
- When idea executes the command, an error is reported: CreateProcess error = 2. The system cannot find the specified file
- Importerror: DLL load failed while importing win32gui: 1 is not a valid Win32 Application.
- Python Basics – python3 installing pyhook and pywin32 Libraries
- Win7 system build PHP + MySQL + Apache environment + deploy ECSHOP project
- Win10 system [createfile() error: 5] problem solving
- Phpstrom reported an error when using SVN: CreateProcess error = 2, the system could not find a solution for the specified file
- Win 10 System Restore Fail 0x80070091