代码之家  ›  专栏  ›  技术社区  ›  jpsstack

在Watson Studio上安装Zbar失败

  •  0
  • jpsstack  · 技术社区  · 6 年前

    我试着执行这个

        ! pip install zbar
    

    错误消息是

     Collecting zbar
      Using cached .../zbar-0.10.tar.bz2
    Building wheels for collected packages: zbar
      Running setup.py bdist_wheel for zbar ... error
      Complete output from command /...:
      ...
      gcc ...
      In file included from zbarmodule.c:24:0:
      zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory
       #include <zbar.h>
                        ^
      compilation terminated.
    

    似乎缺少包含文件。知道吗?

    1 回复  |  直到 6 年前
        1
  •  1
  •   charles gomes    6 年前

    如您所料,它确实需要zbar-devel安装在centos类系统上。

    sudo yum install zbar-devel
    

    由Watson Studio-IBM云运营商提供。 此时,建议提出增强请求,以便 默认情况下,Watson Studio开发团队可以考虑并安装此库。 http://ibm.biz/dsxideas

    谢谢, 查尔斯。

    推荐文章