1.安装anaconda
到官网https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh或者这个地址https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh下载支持64bit的Anaconda
修改安装文件属性为可执行:chmod +x Anaconda2-4.2.0-Linux-x86_64.sh
运行安装文件:./Anaconda2-4.2.0-Linux-x86_64.sh
安装过程中将anaconda加入环境变量时选择yes
2.安装opencv
sudo apt-get install -y ffmpeg
sudo apt-get install -y git
sudo apt-get install -y cmake
sudo apt-get install -y python-pip
sudo apt-get install -y libavcodec-dev
sudo apt-get install -y libavformat-dev
su