import cv2 leads segmentation fault after conda virtual env deactivated [closed]

asked 2018-03-09 07:10:51 -0600

waschbaer gravatar image

updated 2018-03-09 07:42:26 -0600

Hi there,

I have installed opencv 3.4.1 correctly on my system enviroment.

But after I create a conda virtual environment using opencv3.2.0, it leads some problems here:

Under the conda virtual env, I have to always first

ldd PATH_TO_VIRTUAL_ENV_SITE_PACKAGES/cv2.so

such that import cv2 is correctly using the 3.2.0 version of opencv.

Under the conda base enviroment import cv2 using opencv 3.4.1 version.

Under the system enviroment, i.e first comment the PATH to anaconda3, then import cv2 will lead to segmentation fault.

How to solve this problem? Thank you.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2018-03-12 03:04:44.695302

Comments

does not seem to be a specific opencv problem, more a conda (noone can help ppl using that...) or system / venv one.

berak gravatar imageberak ( 2018-03-09 11:33:59 -0600 )edit