- 之前安装python版opencv,需要下载whl文件,进行安装
- 今天发现一个简单的方法。
- Install OpenCV-Python in Ubuntu
Install package python-opencv with following command in terminal (as root user).
$ sudo apt-get install python-opencv
Open Python IDLE (or IPython) and type following codes in Python terminal.
import cv2 as cv
print(cv.__version__)
If the results are printed out without any errors, congratulations !!! You have installed OpenCV-Python successfully.
原文地址:https://www.cnblogs.com/ranjiewen/p/9737346.html
时间: 2024-10-10 05:43:12