Install opencv with Anaconda for python 3.4 on ubuntu

时间:2015-07-28 23:45:43

标签: python opencv ubuntu machine-learning anaconda

So the question is in question and might be already answered, but I haven't found a good answer.

I use latest ubuntu 15.04 and latest anaconda with python 3.4. I want to add opencv into it (to later install caffe). To do so I used this:

https://help.ubuntu.com/community/OpenCV

Just copied the script from answer and executed it. Seems like it have completed successfully, but when I open Spyder from anaconda and do

describe('link function', () => {

    let password = 'nerfherder';

    let confirmPassword = 'nerfherder';

    it('should validate with matching passwords', () => {

        form.password.$setViewValue(password);

        form.confirmPassword.$setViewValue(confirmPassword);

        $rootScope.$digest();

        expect($rootScope.user.password)
            .toBe(password);

        expect($rootScope.user.confirmPassword)
            .toBe(confirmPassword);

        expect(form.password.$valid).toBe(true);
    });

    it('should not validate with passwords that do not match', () => {

        confirmPassword = 'badpassword';

        form.password.$setViewValue(password);

        form.confirmPassword.$setViewValue(confirmPassword);

        $rootScope.$digest();

        expect($rootScope.user.password)
            .toBe(password);

        expect($rootScope.user.confirmPassword)
            .toBeUndefined();

        expect(form.confirmPassword.$valid).toBe(false);
    });
});

I get a error that no such module is found. What am I doing wrong?

BTW, when I do

import cv2

I get the info that package opencv conflicts with package python 3.4(!!!)

Is there any good tutorial on full install of opencv for anaconda + python 3.4?

1 个答案:

答案 0 :(得分:2)

我按照https://scivision.co/anaconda-python-opencv3/给出的说明为我工作