Pyinstaller win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System cannot access the file')

后端 未结 8 1972
攒了一身酷
攒了一身酷 2020-12-11 08:14

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, \'L         


        
8条回答
  •  [愿得一人]
    2020-12-11 08:33

    If you've built your Python project in PyCharm, and later installed pyinstaller, there is a copy of the pyinstaller program EXE in the Output subfolders.

    Simple copy the full path of where the pyInstaller.exe is located inside your PyCharm project, open CMD as Administrator, go to your PyCharm project folder, where your .py file is located and paste the path copied earlier (windows 10), plus add the pyInstaller.exe extension.

    i.e.

    C:\Users\<>\<>\output\pyInstaller.exe <>
    

    It will compile.

提交回复
热议问题