Traceback (most recent call last):
File "main.py", line 35, in
File "main.py", line 8, in print_hi
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "paddleocr\__init__.py", line 14, in
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 391, in exec_module
File "paddleocr\paddleocr.py", line 43, in
File "paddleocr\paddleocr.py", line 37, in _import_file
File "", line 839, in exec_module
File "", line 975, in get_code
File "", line 1032, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI95362\\paddleocr\\tools/__init__.py'
[11208] Failed to execute script 'main' due to unhandled exception!
请大神帮忙解决?paddleHub,paddleOCR等只有打包exe,都要报错,并且报错压根不知道什么情况,完全想不通啊,难道paddle的这些技术框架他就不允许打包吗?
“FileNotFoundError”,看一下是否存在'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI95362\\paddleocr\\tools/__init__.py'文件。可以考虑重装paddleocr
我第一次打包也出错,运行后闪退,后来发现原因是我的程序要读取一个TXT文件,当时这个文件不存在,后来设置了这个TXT文件后,打包后执行就正常了,请你也检查是否有相类似的原因,同时我用的打包命令是pyinstaller