问题
Does anyone knows how to install the python library pyexiv2 and/or Gexiv2 on Mac OSX, ideally on version 10.6.8 and in a virtualenv?
回答1:
It's pretty simple with Homebrew package manager:
brew install exiv2 pyexiv2
If you're using Macports, it also has exiv2 formulas:
http://www.macports.org/ports.php?by=name&substr=exiv
--Edit--
A side note: I got segfault at "import pyexiv2". It turned out I have system Python 2.7.2 and homebrew Python 2.73 intalled at the same time. The problem disappeared after I uninstalled the brewed Python. Related info can be found here:
https://answers.launchpad.net/pyexiv2/+question/212471
回答2:
Gexiv2 is now available in Homebrew, so just...
brew install gexiv2
来源:https://stackoverflow.com/questions/15001174/how-to-install-python-library-pyexiv2-and-gexiv2-on-osx-10-6-8