- 打包paddleocr时,出现Error: Can not import avx core while this file exists: xxxxxx(你安装Python的径)\paddle2.0\lib\site-packages\paddle\fluid\core_avx.pyd错误:
解决方法:进入paddle安装对应的虚拟环境下,如下图所示,找到paddle/libs,如下所示:
Copy所有的dll文件到dist下的: - pyinstaller可执行文件报错astor:
解决方法:
注销这三行。重新打包。
或者通过降低astor的版本:目前电脑上0.8.1,降到0.7.1即可。
3.打包中出现:SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape编码问题,是路径转义问题,只需要把反斜杠’\’改为正斜杠’/’即可。
打包paddleoce为exe文件出现错误的参考内容: