Skip to content

Commit 28a81ea

Browse files
gorogoroyasujanza
authored andcommitted
fix ModuleNotFoundError with a symlink
1 parent dd3d3b0 commit 28a81ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,7 @@ RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip \
4646
.. \
4747
&& make install \
4848
&& rm /${OPENCV_VERSION}.zip \
49-
&& rm -r /opencv-${OPENCV_VERSION}
49+
&& rm -r /opencv-${OPENCV_VERSION}
50+
RUN ln -s \
51+
/usr/local/python/cv2/python-3.7/cv2.cpython-37m-x86_64-linux-gnu.so \
52+
/usr/local/lib/python3.7/site-packages/cv2.so

0 commit comments

Comments
 (0)