Pycharm/Python OpenCV and CV2 install error

前端 未结 16 1712
萌比男神i
萌比男神i 2020-12-24 00:23

I\'ve been trying to install both OpenCV and cv2 from both Pycharm and from the terminal as suggested using:

pip install --user opencv
pip install --user cv2         


        
16条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 00:56

    Installing opencv is not that direct. You need to pre-install some packages first.

    I would not recommend the unofficial package opencv-python. Does not work properly in macos and ubuntu (see this post). No idea about windows.

    There are many webs explaining how to install opencv and all required packages. For example this one.

    The problem of trying to install opencv several times is that you need to uninstall completely before attempting again, or you might end having many errors.

提交回复
热议问题