0
我使用「pip install libtiff」在python 2.7中成功安裝了libtiff。它成功安裝了libtiff-0.4.0軟件包。 但是,當我使用「導入的libtiff」。我得到一個錯誤,這是導入包:成功安裝libtiff,但導入時出現錯誤
Traceback (most recent call last):
File "D:/Python/p1.py", line 1, in <module>
import libtiff
File "D:\Python\lib\site-packages\libtiff\__init__.py", line 20, in <module>
from .libtiff_ctypes import libtiff, TIFF, TIFF3D
File "D:\Python\lib\site-packages\libtiff\libtiff_ctypes.py", line 41, in <module>
raise ImportError('Failed to find TIFF library. Make sure that libtiff is installed and its location is listed in PATH|LD_LIBRARY_PATH|..')
ImportError: Failed to find TIFF library. Make sure that libtiff is installed and its location is listed in PATH|LD_LIBRARY_PATH|..
請澄清。
HI @Shubham_geo,我周圍看到很多這樣的帖子,它被認爲是缺少DLL文件的問題。你可以做的一件事是從http://www.lfd.uci.edu/~gohlke/pythonlibs/下載'libtiff'二進制文件並下載合適的.whl文件並使用pip進行安裝。然後你不會得到這樣的錯誤。 –
非常感謝!!!!!!你救了我的一天,它工作。 –