The opencv library in pycharm imports cv2. No function prompts to jump out of the solution

The opencv library in pycharm imports cv2. No function prompts to jump out of the solution

1. Find the current interpreter installation directory

 For example:

2. Enter the D:\Python37\Lib\site-packages\cv2 file and enter the cv2 folder: 

Find cv2.pyd,

 Copy a copy of cv2.pyd and put it in the upper folder, namely site-packages

 3. Restart pycharm, there will be a function prompt

Guess you like

Origin blog.csdn.net/qq_44114055/article/details/132102405