Installation process
The full text is divided into two parts, install ubuntu and caffe
ubuntu18 installation
- Step 1: Install ubuntu18, first download the ubuntu18 image file directly, in Baidu network disk:
- Step 2: Install the uiso9_cn.exe file to make the U disk image file, which is also in the network disk:
- My backup computer is a Xiaomi computer. Before ubuntu installation, I need to read this note: Xiaomi air13.3win10 installs Ubuntu18.04 dual system
- Step 3: After you are ready, start the installation and partition. See this note for the partition method: ubuntu18.04/20.04 installation tutorial
caffe installation
Before installing the dependency library of caffe, because it is impossible to access the Internet scientifically, you must first change the apt source of ubuntu to the Alibaba Cloud software source. Refer to the notes: Ubuntu 18.04 changed apt to Alibaba Cloud software source and pip/pip3 in ubuntu18 to replace the source
- Step 1: Next, install caffe, install some necessary software here, first install the git tool
sudo apt-get install git
- Step 2: You also need to install gcc and g++ and complete the configuration, please refer to this note here: Ubuntu 18.04 install gcc, g++ 4.8
- Step 3: Install caffe, reference notes: ubuntu18.04 install caffe-cpu version
After the installation is complete, you can operate in pycharm. How to import caffe into pycharm? Reference: Import caffe into pycharm
postscript
1. I installed caffe directly under the brand new ubuntu18, and there will always be some missing dependency packages, which may be caused by network problems at the time, so it is suggested to install which library if there is no library.
2. Since opencv3.4.10 was installed before and the version of libopencv-dev was 3.2, there was a conflict, resulting in caffe compilation failure. Here you only need to uninstall opencv3.4 first, and install caffe first