欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块

程序员文章站 2022-03-18 19:47:45
...

配置https://github.com/MhLiao/DB
self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块

D:\ProgramData\Anaconda3\envs\pytorch_gpu\python.exe E:/ZhuoZhuangOCR/Paper/Latest/DB-Resnet/DB/demo.py
Traceback (most recent call last):
  File "E:/ZhuoZhuangOCR/Paper/Latest/DB-Resnet/DB/demo.py", line 7, in <module>
    from experiment import Structure, Experiment
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\experiment.py", line 4, in <module>
    from structure.representers import *
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\structure\representers\__init__.py", line 1, in <module>
    from .seg_detector_representer import SegDetectorRepresenter
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\structure\representers\seg_detector_representer.py", line 3, in <module>
    from shapely.geometry import Polygon
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\base.py", line 18, in <module>
    from shapely.coords import CoordinateSequence
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geos.py", line 145, in <module>
    _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

shapely版本有问题

conda install -c conda-forge shapely 
相关标签: 填坑之旅

上一篇: Document Head

下一篇: $window, $document