I'm trying to install a complete OpenCV 3.4.2 on ubuntu 18.04, within a conda environment named "tf". This is my cmake command :
$ source activate tf
$ cd ~/Downloads/opencv-3.4.2/build/
$ cmake -D CMAKE_BUILD_TYPE = RELEASE \
-D CMAKE_INSTALL_PREFIX = /usr/local \ -D INSTALL_PYTHON_EXAMPLES = ON \ -D INSTALL_C_EXAMPLES = OFF \ -D OPENCV_EXTRA_MODULES_PATH = ~\Downloads\opencv_contrib-3.4.2\modules \ -D PYTHON_EXECUTABLE = ~/anaconda3/envs/tf/bin/python \ -D BUILD_EXAMPLES = ON ..
$ make
$ sudo make install
$ sudo ldconfig
I didn't see anything wrong during the install. The command :
$ pkg-config --modversion opencv
returns '3.4.2', which is expected.
But the problem is that I can'f find anywhere the file "cv2.cpython-36m-x86_64-linux-gnu.so". It should be within "/usr/local/lib/python3.6/site-packages/", but it's not. I look everywhere (even within the directories of my environment 'tf' : '~/anaconda3/envs/tf').
What went wrong ? How can I fix it ?
Thanks