I am currently studying Pytorch and trying to use the cv2
module. I am using Jupyter notebook and Windows.
I have installed opencv
like this:
!pip install opencv-python
When I choose the kernel (by change kernel option) Python3
and import cv2
then there is no problem.
But when I choose the kernel Pytorch
and import cv2
, then there is an error:
ModuleNotFoundError: No module named 'cv2'
This must be a basic question but I can't find out what the problem is.