PaddlePaddle / PaddleOCR

Awesome multilingual OCR toolkits based on PaddlePaddle (practical ultra lightweight OCR system, support 80+ languages recognition, provide data annotation and synthesis tools, support training and deployment among server, mobile, embedded and IoT devices)
https://paddlepaddle.github.io/PaddleOCR/
Apache License 2.0
44.17k stars 7.82k forks source link

OSError: [WinError 126] 找不到指定的模块。 #4111

Closed wjl8 closed 2 years ago

wjl8 commented 3 years ago

Traceback (most recent call last): File "gan.py", line 1, in from paddleocr import PaddleOCR, draw_ocr File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr__init__.py", line 15, in from .paddleocr import * File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr\paddleocr.py", line 26, in from tools.infer import predict_system File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr\tools\infer\predict_system.py", line 31, in import tools.infer.predict_rec as predict_rec File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr\tools\infer\predict_rec.py", line 31, in from ppocr.postprocess import build_post_process File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr\ppocr\postprocess__init.py", line 24, in from .db_postprocess import DBPostProcess, DistillationDBPostProcess File "D:\codeworkpace\python\envs\paddle\lib\site-packages\paddleocr\ppocr\postprocess\db_postprocess.py", line 22, in from shapely.geometry import Polygon File "D:\codeworkpace\python\envs\paddle\lib\site-packages\shapely\geometry\init.py", line 4, in from .base import CAP_STYLE, JOIN_STYLE File "D:\codeworkpace\python\envs\paddle\lib\site-packages\shapely\geometry\base.py", line 19, in from shapely.coords import CoordinateSequence File "D:\codeworkpace\python\envs\paddle\lib\site-packages\shapely\coords.py", line 8, in from shapely.geos import lgeos File "D:\codeworkpace\python\envs\paddle\lib\site-packages\shapely\geos.py", line 154, in _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll')) File "d:\anaconda\Lib\ctypes\init.py", line 356, in init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块。

我看那一行显示CDLL,应该是找不到这个,但是为什么呢?它不是ctypes下的方法吗?

LDOUBLEV commented 3 years ago

搜一下FAQ或者相关issue,是shaply库的问题

Evezerest commented 3 years ago

可以参考这个 文档

paddle-bot-old[bot] commented 2 years ago

Since you haven\'t replied for more than 3 months, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于您超过三个月未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。