目录
一、情况展示
C:\Users\jiao> pip install opencv_python
Collecting opencv_python
Downloading https://files.pythonhosted.org/packages/33/c9/484c03aa576f2e0ad4d1e8b98128b376c13698e729cb875003730dd648f7/opencv_python-4.4.0.46-cp37-cp37m-win_amd64.whl (33.5MB)
|████████████████████████████████| 33.5MB 1.7MB/s
Requirement already satisfied: numpy>=1.14.5 in d:\anaconda3\lib\site-packages (from opencv_python) (1.16.5)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.4.0.46
此时查看pycharm仍然cv2是报红的
二、解决【误打误撞】
去Project Interpreter查看是否有cv包