Prepare file Anaconda:
https://www.anaconda.com/download/
I downloaded the latest 64-bit (x86) Installer (524 MB)
Then install it in the directory of the downloaded Anaconda installation package
Bash anaconda3-5.0.0.1-linux-x86_64.sh
Restart the terminal after installation is complete, Anaconda will take effect
Enter Python for Python environment
Input import scipy, no error is installed successfully
Attention
Do not go directly to enter, look at the last step to add environment variables, the default is no, you must pay attention when installing.
If the installation path is not added to the system environment variable during installation of Anaconda, it needs to be added manually after installation:
In terminal input $sudo gedit/etc/profile, open the profile file.
Add a line at the end of the file: Export path=/home/grant/anaconda2/bin: $PATH, where "/home/grant/anaconda2/bin" is replaced with your actual installation path. Save.
Restart Linux.
Open terminal, enter Python, if the following interface appears, the setting is successful.
OPENCV Installation
OPENCV installation, online has a variety of methods, with CMake compilation is a giant pit, here is a very brain-free method.
We used Anaconda to install the Anaconda because it was loaded.
Using commands
$ Conda install-c Https://conda.binstar.org/menpo OpenCV
He will install all the environment he needs.
When you are finished installing
Import Cv2
If there is no prompt error, the installation is successful.
Dlib Installation
Conda install-c Conda-forge dlib=19.4
When you are finished installing
Import Dlib
If there is no prompt error, the installation is successful.
Anaconda+linux +opencv+dlib Installation