首页 > 技术文章 > fenghuangscannerV3 EXE版本

crac 2016-06-17 00:01 原文

作者wils0n未给出EXE版本,鼓捣了下:

1.安装pyinstaller

2.fenghuangscanner目录防止pyinstaller下

3.

pyinstaller.py --console --onefile -p c:\Python27\Lib\site-packages\  fenghuangscanner_v3-master\main.py

4.当前目录下生成main\dist\main.exe

PS:过程中会出现问题

(1)由于使用pymssql,需在main.py中import uuid;import _mssql import decimal

(2)config.py import sys,修改exit() 为sys.exit()

目前测试正常。

wr by zh9 2016.6.16

推荐阅读