Python使用过程中的问题


0x001 Pyinstaller 报错

Python 3.8.1 用 pip install Pyinstaller 安装后,使用 Pyinstaller 生成可执行文件报错。
解决方案

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz  
用这行命令再安装一次。  

0x002 Pyinstaller 生成程序出现黑框框

方法两则:

  1. pyinstaller -F filename.py --noconsole
  2. pyinstaller -F -w filename.py

打包

pyinstaller -F -i icon_path.icon filename.py
icon_path.icon # 图标路径
filename.py # 需要打包的文件

hare
更新于: 2019.12.30

原文地址:https://www.cnblogs.com/hare1925/p/12120549.html