I\'ve been trying to install OpenCV in a Bash on Windows (Windows Subsystem for Linux, wsl) environment and it\'s been proving very difficult.
I think I\'m getting v
I solved this problem following this:tatsuya-y.hatenablog.com
I use windows bash and install opencv by conda install -c menpo opencv3=3.1.0
then I got this (python 2.7)
>>>import cv2
Traceback (most recent call last):
File "
I solve it by execstackcommand
sudo apt-get install execstack
sudo execstack -c $HOME/anaconda2/lib/libopencv_*
Then sudo apt-get install gtk2.0-0
Problem solved! >>> cv2.__version__
'3.1.0'
Remember that the opencv libraries are installed to /usr/local/lib if following the installation instructions online. Thus, the command would be:
sudo execstack -c /usr/local/lib/libopencv_*