@TOCubuntu服务器安装cv2
opencv_python:
import cv2 报错多种安装调试后仍显示
ImportError: libXext.so.6: cannot open shared object file: No such file or directory
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
方法:
下载离线opencv-python 链接: link.
按照自己python的版本选择版本
离线安装,在该下载包目录下
pip3 install opencv_python-3.4.2.17-cp36-cp36m-manylinux1_x86_64.whl
显示
Successfully installed opencv-python-3.4.2.17
则安装完成
参考有
https://zhuanlan.zhihu.com/p/341972344