(18)python 打包发布

1.安装 pyinstaller

pip install pyinstaller

2.创建文件

pyinstaller yourprogram.py

试了半天总是报

TypeError: expected str, bytes or os.PathLike object, not NoneType

用的python3.7. 之后换成python3.6就好了

 

后面多出了一个窗体 加 -w 去掉窗体

运行在ubunto

sudo apt-get install wine

选中exe 右键用wine打开

猜你喜欢

转载自www.cnblogs.com/buchizaodian/p/10338521.html