Autocomplete in PyCharm for Python compiled extensions

后端 未结 9 853
遥遥无期
遥遥无期 2020-12-09 02:46

When writing Python code using compiled extensions (the OpenCV Python bindings, for example), PyCharm doesn\'t seem to be aware of their availability. The imports are marked

9条回答
  •  遥遥无期
    2020-12-09 03:27

    I have noticed a difference in pycharm behavior depending on the way to import. using:

    import cv2
    

    the auto completion doesn't work,

    while with:

    from cv2 import cv2
    

    auto completion works

提交回复
热议问题