简体   繁体   English

无法弄清楚“No module named 'paddle.fluid'”,这是关于 ubuntu 16.04 上的 paddleOCR 安装。 已提供详细信息

[英]Unable to figure out "No module named 'paddle.fluid'" , this is with regards to the paddleOCR installation on ubuntu 16.04. Details have been provided

File "/robust/envs/robust/lib/python3.9/site-packages/paddleocr/tools/infer/utility.py", line 20, in from paddle.fluid.core import PaddleTensor ModuleNotFoundError: No module named 'paddle.fluid'文件“/robust/envs/robust/lib/python3.9/site-packages/paddleocr/tools/infer/utility.py”,第 20 行,从 paddle.fluid.core 导入 PaddleTensor ModuleNotFoundError: No module named 'paddle.体液'

I am trying to use paddleocr on linux 16.04.我正在尝试在 linux 16.04 上使用 paddleocr。

unfortunately while running this: ocr = PaddleOCR(use_angle_cls=True, lang='en') got this error.不幸的是,在运行此命令时: ocr = PaddleOCR(use_angle_cls=True, lang='en')出现此错误。

Versions:版本:

Python - 3.9 Python - 3.9

paddlepaddle - 2.0.0rc0桨桨 - 2.0.0rc0

pip - 20.3.3 pip - 20.3.3

Here Robust is my virtual env created using conda.这里 Robust 是我使用 conda 创建的虚拟环境。

Unable to solve to issue.无法解决问题。

I found this thread https://github.com/PaddlePaddle/paddle2onnx/issues/36 But this doesn't solve the issue.我找到了这个线程https://github.com/PaddlePaddle/paddle2onnx/issues/36但这并不能解决问题。

While this works fine on win虽然这在获胜时效果很好

Hi you can try the latest the PaddleOCR models, which does not have the problem.您好,您可以尝试最新的 PaddleOCR 模型,它没有问题。

What's more, paddlepaddle with 2.3.1 version is a better choice.更重要的是,2.3.1版本的paddlepaddle是一个更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“paddle.fluid.core_noavx”的模块? - ModuleNotFoundError: No module named 'paddle.fluid.core_noavx'? ubuntu 16.04中可执行.desktop文件的sqlite3问题。 LTS - sqlite3 problems with executable .desktop file in ubuntu 16.04. LTS pyinstaller ModuleNotFoundError:没有名为“桨”的模块 - pyinstaller ModuleNotFoundError: No module named 'paddle' ImportError:Ubuntu 16.04 Anaconda2中没有名为cv2的模块 - ImportError: No module named cv2 in ubuntu 16.04 Anaconda2 ImportError: No module named cv2 in caffe installed in ubuntu16.04 - ImportError: No module named cv2 in caffe installed in ubuntu16.04 ImportError:没有名为'flask'python3 ubuntu 16.04的模块 - ImportError: No module named 'flask' python3 ubuntu 16.04 Ubuntu 16.04,Python 2.7 - ImportError:没有名为enum的模块 - Ubuntu 16.04, Python 2.7 - ImportError: No module named enum 在ubuntu 16.04中安装pybrain“ImportError:没有名为pybrain.structure的模块” - Install pybrain in ubuntu 16.04 “ImportError: No module named pybrain.structure” 在Ubuntu 16.04(CPU)上安装PyTorch - PyTorch installation on Ubuntu 16.04 (CPU) d3py安装错误-没有名为pandas_figure的模块 - d3py installation error - no module named pandas_figure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM