Autocomplete in PyCharm for Python compiled extensions

后端 未结 9 865
遥遥无期
遥遥无期 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:08

    After two days test,I finally fix this issue: The difference:

    1. Uninstall python 3.7.2,install python 3.7.7.
    2. Change the path where python install.(I strongly doubt that the cause is that my PATH of opencv-python has some Chinese characters.It should have only English).

    Then do:

    1. Install the opencv-contrib-python.

提交回复
热议问题