【问题标题】:Install libtiff on Mavericks在 Mavericks 上安装 libtiff
【发布时间】:2013-11-19 20:45:50
【问题描述】:

我制作了一个需要运行 libtiff 模块的 Python 脚本。你对如何安装 libtiff 有什么建议吗?我尝试使用 fink 进行操作,但出现以下错误:

失败:找不到规范 libtiff 的包!

我还使用 brew 安装了 libtiff,在这种情况下我得到了

ImportError: 没有名为 libtiff 的模块

【问题讨论】:

    标签: python homebrew osx-mavericks libtiff fink


    【解决方案1】:

    自制对我来说效果很好。你安装Python bindings for libtiff了吗?例如,...

    % 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'>
    >>> 
    

    【讨论】:

    • 谢谢@m01!我也最终得到了那个解决方案;-)
    猜你喜欢
    • 2014-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-28
    • 2014-04-15
    • 1970-01-01
    • 2015-03-26
    • 2014-02-09
    相关资源
    最近更新 更多