ᕕ( ᐛ )ᕗ Wu555's blog

Pytoexe

接上文,python文件得转化成exe文件,这里用的时auto-py-to-exe

auto-py-to-exe

pip install auto-py-to-exe

Then to run it,

pip show auto-py-to-exe

Name: auto-py-to-exe
Version: 2.39.0
Summary: Converts .py to .exe using a simple graphical interface.
Home-page: https://github.com/brentvollebregt/auto-py-to-exe
Author: Brent Vollebregt
Author-email: brent@nitratine.net
License: MIT
Location: c:\users\iamwu555\appdata\roaming\python\python39\site-packages
Requires: Eel, pyinstaller
Required-by:

访问Location,运行auto-py-to-exe

报错

代码中需要导出excel文件,这里用到了openpyxl库,打包就会报错。

这里需要把openpyxl版本降下来,pip uninsrall openpyxlpip install openpyxl==2.3.5