Summary of ubuntu18 installation and caffe-cpu installation problems (including detailed process)

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:
  • 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


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

Guess you like

Origin blog.csdn.net/Mrsherlock_/article/details/113800443