self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块
在运行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'
参考链接:
- https://www.codeleading.com/article/10823667722/
- https://blog.csdn.net/peachhhh/article/details/114900589
self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块相关推荐
- 安装atari,出现错误“self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定模块”
如题,安装过atari_py,但在import时出现"lib\ctypes\__init__.py", line 364, in __init__ self._handle = _ ...
- Python调用C++ DLL库 ------OSError: [WinError 126] 找不到指定的模块。
Python调用C++ DLL库 解决Python中 OSError: [WinError 126] 找不到指定的模块 的问题. 一.问题: 在进行Python开发的过程中,很可能遇到调用C++ ...
- OSError: [WinError 126] 找不到指定的模块
python调用动态库: OSError: [WinError 126] 找不到指定的模块 解决方法:把当前目录添加到系统中: 要添加目标文件的父目录: current_dir结尾不带'/',注意,后 ...
- OSError: [WinError 126] 找不到指定的模块/Could not find 'cudart64_90.dll'.
OSError: [WinError 126] 找不到指定的模块/Could not find 'cudart64_90.dll'. 原文:http://blog.csdn.net/wobeatit/ ...
- OSError: [WinError 126] 找不到指定的模块————Shapely
问题 OSError: [WinError 126] 找不到指定的模块----Shapely pip install shapely之后,跑程序报错误,错误如下:import shapely 没问题, ...
- python打包不能在其他电脑打开、找不到指定模块,pyinstaller打包移植到别的电脑报错OSError: [WinError 126] 找不到指定的模块。...
首先说一下我的环境 win10 python3.6.4 下面是我安装库 版本 pip list Package Version --------------- ------------ ...
- OSError: [WinError 126] 找不到指定的模块。【专治疑难杂症】
OSError: [WinError 126] 找不到指定的模块. Error loading "D:\xxxxxxx\lib\site-packages\torch\lib\asmjit. ...
- OSError: [WinError 126] 找不到指定的模块。
OSError: [WinError 126] 找不到指定的模块. 参考博客:https://www.pianshen.com/article/90841683243/ 环境:Win10+Anacon ...
- 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 ...
- 解决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 ...
最新文章
- java 点餐界面_Java小项目点餐系统(二)之服务端 | 学步园
- DatePickerDialog日期对话框以及回调函数的用法
- [转载] Python Pandas 的 all和any方法
- DataTemplate 以及Template Selector 学习笔记
- python简单代码示例-python3简单代码示例
- Windows Server 2016安装IIS服务步骤
- Nanopore 16S测序数据分析流程之blast/last
- IOS 混合开发 手势返回控制
- 共射级三极管放大电路与其饱和失真与截止失真的分析
- 手机端微信发朋友圈功能测试点总结
- SharePoint 收集签名工作流 配置步骤
- 重要性采样(importance sampling)
- php请求纯文本,php – 使用纯文本回退发送HTML简报
- [WIKIOI 1316]文化之旅(队列深度优先搜索)
- 秒杀产品总是抢不到?抢单助手来报道
- STM32F429第九篇之stm32f4xx_hal_rcc_ex
- 数据分析的六大黄金法则
- 瑞典沃尔沃轿车公司再次召回
- 计算机在机械设制造中的应用实例,机械设计与制造毕业设计一体化分析
- 对口单招计算机电工试题答案,对口单招电工试题52题.doc