1. After installing opencv -python on the command line , it can be imported and run correctly in pycharm, but there is no completion prompt
2. Solution:
Installation path in opencv: My installation path is D:\ProgramData\Anaconda3\Lib\site-packages\cv2, there is a file cv2.pyd in this directory, copy this file and put it in the superior directory site- under packages. Then you can correctly see the function prompt of the opencv library
3. If there is no cv2.pyd, but a similar cv2.cp37-win_amd64.pyd
file, then you can rename the file first cv2.pyd
, and then copy it to the upper directory!