我制作了一个Python脚本,它需要一个libtiff模块来运行。你对如何安装libtiff有什么建议吗?我试图使用fink来完成这个任务,但是我得到了以下错误:
失败:没有找到指定的软件包,libtiff!
我还使用brew安装了libtiff,在本例中我获得了
ImportError:没有名为libtiff的模块
发布于 2014-03-12 18:35:58
自制的对我来说很好。你安装用于libtiff的Python绑定了吗?例如..。
% brew install libtiff
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtiff-4.0.3.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.3.mavericks.bottle.tar.gz
/usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M
% brew install python
% pip install --upgrade setuptools
% pip install --upgrade pip
% pip install numpy
% pip install -e svn+http://pylibtiff.googlecode.com/svn/trunk/
% python
Python 2.7.6 (default, Mar 12 2014, 18:28:55)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtiff
>>> libtiff
<module 'libtiff' from '/Users/me/src/svn/libtiff/__init__.pyc'>
>>> https://stackoverflow.com/questions/20081650
复制相似问题