1.参考解决的链接Windows系统下使用pyinstaller打包PaddleOCR中表格识别PP-Structure_weixin_46846685的博客-CSDN博客

使用pyinstaller/auto-py-to-exe将py文件打包出现“Failed to execute script pyi_rth_pkgres”问题。_Laxxs的博客-CSDN博客

1cannot import paddle/fluid/core/core_noavx对应解决方式是安装noavx版本的paddle

paddle\fluid\core_avx\__init__ duplicate arguement p_str in function definit

2.paddle fluid proto no module framework_pb2

拷贝安装的paddle/fluid/proto 和dataset到exe目录下试试Windows系统下使用pyinstaller打包PaddleOCR中表格识别PP-Structure_weixin_46846685的博客-CSDN博客

3.pyinstaller打包后线程运行

检查是否缺少项目调用的文件,拷贝到exe目录下

4.找不到文件subprocess.py

PaddleOCR 打包出现问题及解决方法_forward_huan的博客-CSDN博客

修改\site-packages\paddle\dataset\image.py为try: import cv2 except ImportError: cv2 = None

5.json.decoder.JSONDecodeError

提示应该使用双引号}}

出现“json.decoder.JSONDecodeError: Expecting ‘,‘ delimiter: line 1 column 267 (char 266)”报错的解决方法_Griffy650的博客-CSDN博客_expecting ':' delimiter: line 1 column 129192 (cha

// An highlighted block

f = open(filename, encoding = 'utf-8')

str = f.readline()

data = json.loads(str)

有datetime类型,大概因为py3.6更新到了3.8才有这类错误,所以把datetime类型的数据去除掉了

更多推荐

pyinstaller paddle项目