简体   繁体   English

导入文件时出错:OSError: [WinError 126] The specified module could not be found

[英]Getting error while importing a file: OSError: [WinError 126] The specified module could not be found

I get following error message while trying to import a thisImagingSource file into my application.尝试将 thisImagingSource 文件导入我的应用程序时收到以下错误消息。 My current operating system is Windows10.我目前的操作系统是Windows10。 Previously while using Windows8 I didn´t get this same error.以前在使用 Windows8 时,我没有收到同样的错误。 Can some one help me?有人能帮我吗?

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-2-b6bb7e0c0dc0> in <module>
      8 """
      9 import ctypes as C
---> 10 import tisgrabber as IC
     11 import cv2
     12 import numpy as np

~\Documents\Python Scripts_20200422\application\tisgrabber.py in <module>
     25 GrabberHandle._fields_ = [('unused', C.c_int)]
     26 
---> 27 class TIS_GrabberDLL(object):
     28     if sys.maxsize > 2**32 :
     29         __tisgrabber = C.windll.LoadLibrary("tisgrabber_x64.dll")

~\Documents\Python Scripts_20200422\application\tisgrabber.py in TIS_GrabberDLL()
     27 class TIS_GrabberDLL(object):
     28     if sys.maxsize > 2**32 :
---> 29         __tisgrabber = C.windll.LoadLibrary("tisgrabber_x64.dll")
     30     else:
     31         __tisgrabber = C.windll.LoadLibrary("tisgrabber.dll")

C:\ProgramData\Anaconda3\lib\ctypes\__init__.py in LoadLibrary(self, name)
    440 
    441     def LoadLibrary(self, name):
--> 442         return self._dlltype(name)
    443 
    444 cdll = LibraryLoader(CDLL)

C:\ProgramData\Anaconda3\lib\ctypes\__init__.py in __init__(self, name, mode, handle,     use_errno, use_last_error)
    362 
    363         if handle is None:
--> 364             self._handle = _dlopen(self._name, mode)
    365         else:
    366             self._handle = handle

OSError: [WinError 126] The specified module could not be found

I think tisgrabber isn't included in the standard python libary so you have to install it.我认为 tisgrabber 不包含在标准 python 库中,因此您必须安装它。 You could do this with the console command pip install <name of the module> .您可以使用控制台命令pip install <name of the module>来执行此操作。

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

相关问题 OSError:[WinError 126]找不到在Pycharm中导入mxnet的指定模块 - OSError: [WinError 126] The specified module could not be found importing mxnet in Pycharm OSError: [WinError 126] 找不到指定的模块? - OSError: [WinError 126] The specified module could not be found? 错误ctypes OSError:[WinError 126]找不到指定的模块 - error ctypes OSError: [WinError 126] The specified module could not be found Pycharm 错误 - OSError: [WinError 126] 找不到指定的模块 - Pycharm error - OSError: [WinError 126] The specified module could not be found “OSError: [WinError 126] 找不到指定的模块”使用 pvfactors 库 - "OSError: [WinError 126] The specified module could not be found" using pvfactors library OSError: [WinError 126] 在 pyinstaller 中找不到指定的模块 - OSError: [WinError 126] The specified module could not be found in pyinstaller nidaqmx.Task: (OSError: [WinError 126] The specified module could not be found) - nidaqmx.Task: (OSError: [WinError 126] The specified module could not be found) OSError: [WinError 126] Python中找不到指定的模块 - OSError: [WinError 126] The specified module could not be found in Python 导入隐藏OSError:[WinError 126]找不到指定的模块 - Import hid OSError: [WinError 126] The specified module could not be found 安装 Shapely: OSError: [WinError 126] 找不到指定的模块 - Install Shapely: OSError: [WinError 126] The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM