换源
到/etc/apt/sources.list.
替换
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
sudo apt-get update
卸载python2
sudo apt-get remove python2.7
更换python优先级
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
安装cmake
sudo apt-get install cmake
sudo apt-get install aptitude
sudo apt-get install python3-pip
sudo pip3 install numpy
sudo apt-get install python-pip python-dev build-essential
sudo apt-get install python3-pip python3-dev build-essential
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
sudo apt-get install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
安装opencv(3.4.0)
进入文件夹,创建文件夹build
进入打开终端
cmake -D CMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
sudo make -j5
sudo make install
sudo pip3 install pyserial
pip3 install dlib
安装tensorflow
git clone https://github.com/JohnnyChan8/TensorFlow4FireflyRK3399.git
pip3 install tensorflow-1.1.0rc1-cp35-cp35m-linux_aarch64.whl
import tensorflow可能出现的问题 *
TypeError: descriptor '__subclasses__' of 'type' object needs an argument
对pandas进行降级
pip3 install pandas==0.24.1 --user