Fast installation of Opencv3 with Anaconda in Ubuntu

Source: Internet
Author: User
Tags bz2 intel mkl
Fast installation of Opencv3 with Anaconda in Ubuntu

My system environment: Ubuntu16.04, Anaconda3 (Python 3.6)

Digression: In the pursuit of artificial intelligence on the road of continuous progress, the installation of many libraries let me very "egg pain", and especially the installation of Caffe and OpenCV in various pits have ...

Enter the command in terminal:

Conda install-c Https://conda.anaconda.org/menpo Opencv3

Then, according to the prompts, enter some simple commands such as [y]\n? Enter Y and wait for the update to install.

But this method is very slow, because the connection is a foreign site, want to speed up the reference to my other blog. Hope to be useful to everyone.

Pro-Test effective, screenshot as follows:



Of course, there is a quicker way to download the compiled OPENCV3 package directly and install it using the Conda command.

According to your version, go to the following address to download the corresponding package:

Https://anaconda.org/menpo/opencv3/files

For example, download the package: opencv3-3.1.0-py36_0.tar.bz2

Install directly using the Conda command:

  Conda Install opencv3-3.1.0-py36_0.tar.bz2
In Ipython interaction, the import Cv2 does not complain, that is, the installation is successful.


While I was installing OPENCV in the company, OpenCV had tested the installation successfully, but I had the following problems when I ran my code:

Intel MKL FATAL error:cannot load libmkl_avx.so or libmkl_def.so.
Finally Google found the solution, a solution to the problem:

Conda install-  F  numpy
He is the original numpy in mischief, updated NumPy screenshot as follows:


Screenshot after successful installation:




Finally, it's done.


Refer to the website and thank them for their solution:

1, https://github.com/ContinuumIO/anaconda-issues/issues/720

2, https://github.com/BVLC/caffe/issues/3884

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.