win32ctypes.pywin32.pywintypes.error: (2, ‘LoadLibraryEx‘, ‘系统找不到指定的文件。‘) |
您所在的位置:网站首页 › 错误1006文件所在的卷已被外部更改 › win32ctypes.pywin32.pywintypes.error: (2, ‘LoadLibraryEx‘, ‘系统找不到指定的文件。‘) |
win32ctypes.pywin32.pywintypes.error: (2, ‘LoadLibraryEx‘, ‘系统找不到指定的文件。‘)
目录 win32ctypes.pywin32.pywintypes.error: (2, ‘LoadLibraryEx‘, ‘系统找不到指定的文件。‘) 问题 解决方案 问题使用pyinstaller将py文件打包为windows exe程序遇到如下问题: win32ctypes.pywin32.pywintypes.error: (2, 'LoadLibraryEx', '系统找不到指定的文件。') stackoverflow和csdn查看,七嘴八舌说啥的都有: 有的说,必须使用虚拟环境,我不相信; 有的说,必须使用原生python环境(非anaconda之类集成环境),我不相信; 有的说,可能是python版本过低过着过高引起,我有点相信; 有的说,可能是你的pyinstaller版本过高,降一下试一试,我信了; #出现如下错误 win32ctypes.pywin32.pywintypes.error: (2, 'LoadLibraryEx', '系统找不到指定的文件。') #怀疑是原来构建中的临时文件干扰了新的构建,删除之后继续构建,依旧同样错误; 解决方案#上stackoverflow和csdn查看,七嘴八舌说啥的都有,最后采纳了降低版本的方法成功 # pip install pyinstaller==3.5 # pyinstaller -F prediction.py # 打包后的文件结构如下: #打包生成的prediction.exe文件就存放在dist目录中 参考:pythoninstaller 参考:用pyinstaller打包失败报错win32ctypes.pywin32.pywintypes.error: (1920, ‘LoadLibraryExW’, ‘系统无法访问此文件。’) 参考:python pyinstaller打包工具遇到的坑 参考:PyInstaller win32ctypes.pywin32.pywintypes.error: (2, 'LoadLibraryExW', 'The system cannot find the file specified.') 参考:Pyinstaller win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', 'System cannot access the file') |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |