直接一句话: pip install opencv-python 换国内的源: pip install -i https://mirrors.aliyun.com/pypi/simple/ opencv-python