记录一下python学习中遇到的问题

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容