1.在centos中使用时cv2报错
错误1:
ImportError: libXext.so.6: cannot open shared object file: No such file or directory
安装:
yum install libXext.x86_64
错误2:
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
安装:
yum install libSM.x86_64
错误3:
libXrender.so.1: cannot open shared object file: No such file or directory
安装:
yum install libXrender.x86_64
Reference:https://blog.csdn.net/a1368783069/article/details/80254257
2. 在Linux中安装Anaconda
step1. 下载
wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
step2 安装
chmod 777 Miniconda3-latest-Linux-x86_64.sh #给执行权限
bash Miniconda3-latest-Linux-x86_64.sh #运行
step3启动
进入Anaconda的安装目录下的bin
文件夹中,能看到一个active
的文件
chmod 777 activate
. ./activate #这里的第一个点跟source是一样的效果
还有一种方式是配置环境变量,之后再来记录
Reference:https://www.jianshu.com/p/edaa744ea47d