Pycharm/Python OpenCV and CV2 install error

前端 未结 16 1746
萌比男神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:30

    This the correct command that you need to install opencv

    pip install opencv-python
    

    if you get any error when you are trying to install the "opencv-python" package in pycharm, make sure that you have added your python path to 'System Variables' section of Environment variables in Windows. And also check whether you have configured a valid interpreter for your project

提交回复
热议问题