Anaconda+linux +opencv+dlib Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.