V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
RicardoScofileld
V2EX  ›  Python

libzbar.so.0: cannot open shared object file: No such file or directory

  •  
  •   RicardoScofileld · 2018-04-18 15:21:39 +08:00 · 2151 次点击
    这是一个创建于 2193 天前的主题,其中的信息可能已经有所发展或是发生改变。

    跪求大佬们解答: centos 系统,pip list 明明安装了 zbar,但是导入的时候却报错,如题所示。

    5 条回复    2018-04-23 08:38:11 +08:00
    julyclyde
        1
    julyclyde  
       2018-04-18 16:56:42 +08:00
    pip 装的是 pip 里面的 binding 库
    你还需要补装那个实体库
    ZackB0T
        2
    ZackB0T  
       2018-04-18 17:12:29 +08:00 via Android
    一般 CentOS 碰找不到库这事儿,先搜下 libzbar.so ,然后 ln 过去一个 so.0
    RicardoScofileld
        3
    RicardoScofileld  
    OP
       2018-04-18 22:26:05 +08:00
    @julyclyde pip 装的,去了 env/lib/python/site-package 里面也有,就是报错动态库没有
    RicardoScofileld
        4
    RicardoScofileld  
    OP
       2018-04-18 22:26:26 +08:00
    @ZackB0T 虚拟环境里的
    julyclyde
        5
    julyclyde  
       2018-04-23 08:38:11 +08:00
    @RicardoScofileld 我上面已经说过了,你再读一遍
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   956 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:24 · PVG 06:24 · LAX 15:24 · JFK 18:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.