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

查看:73
本文介绍了Pyinstaller win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System cannot access the file')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 pyinstaller 将我的 python 文件打包到 .exe,但我不断收到此错误消息.

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')

我已经尝试以管理员身份运行 cmd,但它仍然无法正常工作.

I've tried running the cmd as administrator but it's still not working.

我的操作系统是 Windows 10

My operating system is Windows 10

推荐答案

我通过卸载 python(从 Microsoft 商店安装)并从 python.org.

I managed to solve the same problem by uninstalling python (installed from Microsoft store) and installing 3.8.2 from python.org.

这篇关于Pyinstaller win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System cannot access the file')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆