2016-10-12 5 views
6

bekomme ich folgende Fehlermeldung, wenn opencv in Python zu importieren:Fehler cv2 in python3 importieren, Anaconda

> python 
>>> import cv2 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined symbol: hb_buffer_set_cluster_level 

Das System Linux Debian ist 4.7.0-1-amd64, strecken. Ich habe eine Umgebung für Python 3 in Anaconda erstellt:

conda create --name=envPython3 python=3 anaconda 
source activate envPython3 

und dann OpenCV installiert:

conda install -c https://conda.anaconda.org/menpo opencv3 

Es installiert werden sollte, weil

conda list | grep cv 

kehrt

opencv3   3.1.0   py35_0 menpo 

Alles funktioniert f Ich hatte auch das gleiche Problem ine mit Python 2

May be this post is related

Antwort

18

installieren. Ich habe eine Antwort gefunden, die für dich funktionieren könnte. Versuchen

source activate envPython3 
conda install -c asmeurer pango 
python 
>>> import cv2 

Bitte sehen diese github link

1

Versuchen Sie es erneut von

conda install -c https//conda.binstar.org/menpo opencv3

+1

ich den gleichen Fehler erhalten, nachdem diese Installation – krasin

Verwandte Themen