How to install openCV for python without sudo?

asked 2016-08-10 10:15:19 -0600

I try to run make install, but have error -> file cannot create directory: /usr/local/include/opencv2. Maybe need administrative privileges. I'm not allowed to run make install as root - what should I do?

edit retag flag offensive close merge delete

Comments

could you live with installing to your home dir ?

you can set the install path with cmake -DCMAKE_INSTALL_PREFIX=/where/you/want/it

berak gravatar imageberak ( 2016-08-10 10:21:24 -0600 )edit

to expand berak his remark, do make sure then that your compiler and linker know where OpenCV can be found, because it will not be in the standard location.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-08-11 03:13:48 -0600 )edit