0

我试图执行这个

    ! 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.

看起来缺少包含文件。任何想法?

4

1 回答 1

1

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

sudo yum install zbar-devel

Sudo 在 watson Studio 上的 Jupyter Notebook 上被禁用,并且只能由 Watson Studio - IBM Cloud Operators 访问。此时,建议提出 Enhancement 请求,以便 Watson Studio 开发团队可以考虑并默认安装此库。 http://ibm.biz/dsxideas

谢谢,查尔斯。

于 2018-06-01T23:02:17.600 回答