How to install python library Pyexiv2 and Gexiv2 on osx 10.6.8?

若如初见. 提交于 2020-01-03 16:51:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!