Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

py-opencv import error in Bash for Windows 10

Hello,

I installed py-opencv using the following command on Bash for Windows 10:

conda install -c conda-forge opencv

I try importing cv2 in my Python3 interpreter and get the following error:

ImportError: libopencv_reg.so.3.1: cannot enable executable stack as shared object requires: Invalid argument

This works fine in regular Ubuntu but for some reason it doesn't work in Bash for Windows 10. If anyone has a work around it would be much appreciated!