openslide python import show:windows error

余生颓废 提交于 2019-12-24 08:32:12

问题


I am using python 2.7 win 32

I need to install openslide in python

in below page show Install openslide

http://openslide.org/download/

which item download for windows.

i tried every thing.and pip installation

the error shows below

import openslide

Traceback (most recent call last):

  File "<pyshell#2>", line 1, in <module>
    import openslide
  File "C:\Python27\lib\site-packages\openslide\__init__.py", line 29, in >>>>  <module>
    from openslide import lowlevel
  File "C:\Python27\lib\site-packages\openslide\lowlevel.py", line 41, in <module>
    _lib = cdll.LoadLibrary('libopenslide-0.dll')
  File "C:\Python27\lib\ctypes\__init__.py", line 443, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

Thanks


回答1:


This question may be old, but perhaps an answer will help a future viewer.

To fix this error, you need to download the openslide binaries at http://openslide.org/download/ look under (Windows Binaries)

Next, add the location of the bin folder to your system path (this will allow python to know where the module is). And that should solve the problem.

Install instructions found here: https://pypi.python.org/pypi/openslide-python



来源:https://stackoverflow.com/questions/39527410/openslide-python-import-showwindows-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!