基础环境:kali Linux
python 2.7.13

  1. python -m pip --no-cache-dir install opencv-python -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

image.png
解决

python -m pip --no-cache-dir install opencv-python==4.2.0.32 -i http://pypi.douban.com/simple/  --trusted-host pypi.douban.com

opencv-python==4.2.0.32 是最后一个支持pip安装的版本,因此需要指定版本安装
image.png
安装成功

######分割线
运行脚本,报错如下
python bwm.py encode hui.png wm.png hw.png

image.png
解决方法

apt install python-tk

image.png
此时运行脚本无报错

python bwm.py encode hui.png wm.png hw.png

image.png