Zbar + python, crashes on import (OSX 10.9.1)

一世执手 提交于 2019-11-30 11:21:07

I found the answer, but I wanted to post it here anyway in case anyone has the same trouble I did. You can use the brew installation of zbar, but you have to install to python via: pypi.python.org/pypi/zbar using this patch: https://github.com/npinchot/zbar/commit/d3c1611ad2411fbdc3e79eb96ca704a63d30ae69. Also, be sure to use which python in the terminal to make sure it's checking in the right directory. The only reliable way I found to make it do this was to edit ~/.bashrc and add the /usr/local/ and /usr/local/bin/ directories to it, and then source ~/.bashrc whenever I opened a terminal to install anything via pip or Homebrew.

Thanks for the tip about answering and accepting @lkraider

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