pip安装命令:pip install python-opencv
先安装apt-file。
apt-get update
apt-get install apt-file
apt-file update
然后寻找该依赖库:
apt-file search libXrender.so.1
根据提示安装合适的依赖库:
apt-get install libxrender1
基本上所有的“ cannot open shared object file: No such file or directory”错误都可以这么解决。