您可以通过以下两种方法安装OpenCV:1、使用pip安装,在命令行窗口中输入“pip install opencv-python”即可安装 。2、使用PyCharm安装,在PyCharm的设置中选择“Project Interpreter”,然后点击右上角的“+”号,搜索“opencv-python”并安装。