python - Opencv 2.4 and 3.1: choose default one - Ask Ubuntu


hi searched couldn't find solution yet; kind of new ubuntu. have both opencv 2.4 , 3.1 on machine. if

pkg-config --modversion opencv 

it print out 3.1.0; if use python ,

print cv2.__version__ 

then give 2.4.8. want make 3.1 default 1 when

import cv2 

in python. how do this?

edit:

i'm on ubuntu 14.04. installed opencv 3 through this: script installation. opencv 2.4 installed earlier in similar way. if check

/usr/local/lib 

there 2 sets of .so files: libopencv_core.so , libopencv_core.so.3.1. should proceed here?


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User