在centos服务器里安装opencv的坑:mportError: libXrender.so.1: cannot open shared object file: No such file or directory and wrong ELF class: ELFCLASS32

centos7服务器安装opencv (其他版本服务器一样)

安装opencv:

pip install opencv-python

导入cv2

import cv2

报错:importError: libXrender.so.1: cannot open shared object file: No such file or directory

下载 :libxrender.so.1

再次导入:

报错:importError: libXrender.so.1:wrong ELF class: ELFCLASS32

终极办法:

在自己的本地电脑里上传一个libxrender.so.1 64位的到服务器解决!!!!

原文地址:https://www.cnblogs.com/phying/p/9154657.html