在运行python代码时,报以下错误

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, ExperimentFile "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 SegDetectorRepresenterFile "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\structure\representers\seg_detector_representer.py", line 3, in <module>from shapely.geometry import PolygonFile "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>from .base import CAP_STYLE, JOIN_STYLEFile "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\base.py", line 18, in <module>from shapely.coords import CoordinateSequenceFile "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\coords.py", line 8, in <module>from shapely.geos import lgeosFile "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的文件夹里面的代码报的错(要根据具体情况具体分析),可以看出这是由于shapely版本有问题
解决方法:

conda install -c conda-forge shapely

安装完后,可能会出现

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized. OMP: Hi

解决方法:加入下面这行代码

import os
os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'

参考链接:

  1. https://www.codeleading.com/article/10823667722/
  2. https://blog.csdn.net/peachhhh/article/details/114900589

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

  1. 安装atari,出现错误“self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定模块”

    如题,安装过atari_py,但在import时出现"lib\ctypes\__init__.py", line 364, in __init__ self._handle = _ ...

  2. Python调用C++ DLL库 ------OSError: [WinError 126] 找不到指定的模块。

    Python调用C++ DLL库 解决Python中 OSError: [WinError 126] 找不到指定的模块 的问题. 一.问题:   在进行Python开发的过程中,很可能遇到调用C++ ...

  3. OSError: [WinError 126] 找不到指定的模块

    python调用动态库: OSError: [WinError 126] 找不到指定的模块 解决方法:把当前目录添加到系统中: 要添加目标文件的父目录: current_dir结尾不带'/',注意,后 ...

  4. OSError: [WinError 126] 找不到指定的模块/Could not find 'cudart64_90.dll'.

    OSError: [WinError 126] 找不到指定的模块/Could not find 'cudart64_90.dll'. 原文:http://blog.csdn.net/wobeatit/ ...

  5. OSError: [WinError 126] 找不到指定的模块————Shapely

    问题 OSError: [WinError 126] 找不到指定的模块----Shapely pip install shapely之后,跑程序报错误,错误如下:import shapely 没问题, ...

  6. python打包不能在其他电脑打开、找不到指定模块,pyinstaller打包移植到别的电脑报错OSError: [WinError 126] 找不到指定的模块。...

    首先说一下我的环境 win10 python3.6.4 下面是我安装库 版本 pip list Package         Version --------------- ------------ ...

  7. OSError: [WinError 126] 找不到指定的模块。【专治疑难杂症】

    OSError: [WinError 126] 找不到指定的模块. Error loading "D:\xxxxxxx\lib\site-packages\torch\lib\asmjit. ...

  8. OSError: [WinError 126] 找不到指定的模块。

    OSError: [WinError 126] 找不到指定的模块. 参考博客:https://www.pianshen.com/article/90841683243/ 环境:Win10+Anacon ...

  9. OSError: [WinError 126] 找不到指定的模块Errorloading“torch\lib\caffe2_nvrtc.dll“ or one of its dependencies.

    import torch x = torch.empty(5, 3) print(x) 报错 D:\Anaconda\anaconda3\python.exe D:/Python1自学/pythonP ...

  10. 解决Pytorch:raise err OSError: [WinError 126] 找不到指定的模块caffe2_detectron_ops.dll” or one of its dependen

    解决Pytorch:raise err OSError: [WinError 126] 找不到指定的模块 caffe2_detectron_ops.dll" or one of its de ...

最新文章

  1. java 点餐界面_Java小项目点餐系统(二)之服务端 | 学步园
  2. DatePickerDialog日期对话框以及回调函数的用法
  3. [转载] Python Pandas 的 all和any方法
  4. DataTemplate 以及Template Selector 学习笔记
  5. python简单代码示例-python3简单代码示例
  6. Windows Server 2016安装IIS服务步骤
  7. Nanopore 16S测序数据分析流程之blast/last
  8. IOS 混合开发 手势返回控制
  9. 共射级三极管放大电路与其饱和失真与截止失真的分析
  10. 手机端微信发朋友圈功能测试点总结
  11. SharePoint 收集签名工作流 配置步骤
  12. 重要性采样(importance sampling)
  13. php请求纯文本,php – 使用纯文本回退发送HTML简报
  14. [WIKIOI 1316]文化之旅(队列深度优先搜索)
  15. 秒杀产品总是抢不到?抢单助手来报道
  16. STM32F429第九篇之stm32f4xx_hal_rcc_ex
  17. 数据分析的六大黄金法则
  18. 瑞典沃尔沃轿车公司再次召回
  19. 计算机在机械设制造中的应用实例,机械设计与制造毕业设计一体化分析
  20. 对口单招计算机电工试题答案,对口单招电工试题52题.doc

热门文章

  1. coding部署博客 + 腾讯云 cdn 踩坑日记
  2. 解决Samba服务无法访问 网络名不再可用的问题
  3. 终端发送自己的短地址给协调器
  4. latex插入参考文献技巧
  5. Python之字典遍历元素
  6. Word如何使用预设样式、自定样式以及生成自动目录教程
  7. Ubuntu16.04 微信网页版安装
  8. 蚂蚁的开放:想办法摸到10米的篮筐 1
  9. html中单元格向下合并单元格,html中单元格合并 HTML 怎么给合并单元格设置宽度...
  10. matlab最大值滤波降噪,matlab图像最大值和最小值滤波