2024-04-25 02:31:02 发布
网友
我做了一个Python脚本,需要一个libtiff模块来运行。你对如何安装libtiff有什么建议吗?我试着用fink来做,但是我得到了以下错误:
Failed: no package found for specification libtiff!
我还使用brew安装了libtiff,在本例中
ImportError: No module named libtiff
自制对我来说很好。你安装了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'> >>>
自制对我来说很好。你安装了Python bindings for libtiff了吗?例如。。。在
相关问题 更多 >
编程相关推荐