V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
blinue
V2EX  ›  Python

关于 pylint 对 cv2 报错的问题

  •  
  •   blinue ·
    Blinue · Aug 21, 2019 via Android · 1825 views
    This topic created in 2440 days ago, the information mentioned may be changed or developed.

    网络上提到的使用--generate-members 真是荒谬,它根本不是 pylint 的选项,它之所以能工作,是因为 pylint 失败了。没人指出过这个问题吗?

    官网的解决方案无法解决所有问题,似乎只能禁止“ no-member ”错误了,各位有更好的解决方案吗?

    2 replies    2019-08-23 16:17:28 +08:00
    chenstack
        1
    chenstack  
       Aug 23, 2019
    github 上 pylint 的 issue 有人提供了方案:
    --extension-pkg-whitelist=cv2
    具体见
    https://github.com/PyCQA/pylint/issues/2888
    https://github.com/PyCQA/pylint/issues/2426
    blinue
        2
    blinue  
    OP
       Aug 23, 2019 via Android
    @chenstack 我说的官网解决方法就有它,这个选项无法解决所有问题,比如访问__version__依然报错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   953 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:42 · PVG 06:42 · LAX 15:42 · JFK 18:42
    ♥ Do have faith in what you're doing.