PermissionError: [Errno 13] Permission denied: ‘C:UserspcAppDataRoamingpyinstallerbincache00_py37_64bitapi-ms-win-core-util-l1-1-0.dll’
关掉360安全卫士。
Several hooks defined for module ‘’. Please take care they do not conflict.
pip install pywin32-ctypes
UPX is not available.
要先解决这个问题,否则打包不会成功,而且后面会报各种各样的错误。
UPX:the Ultimate Packer for eXecutables
FileNotFoundError: [Errno 2] No such file or directory: ‘./data/chineseStopWords
.txt’
[11520] Failed to execute script main
使用绝对路径,双反斜杠
Import to be excluded not found: ‘setuptools.py33compat’
PyInstaller对环境要求比较高,如果在本机上没装好C++库,经常没有报错——缺这个DLL,缺那个DLL……
所以这里建议大家,如果要在本地的Windows系统上打包,最好不要偷懒,也不要心疼存储空间和那点时间,老老实实把Visual Studio 2019装起来吧——社区版就行了,它会自动把各种DLL依赖都准备好,通常在开发过程中就很少遇到类似报错了。
Visual Studio 2019下载地址:/
本文发布于:2024-02-01 01:18:04,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170672148432789.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |