I just installed Canopy because I had some issues running code in Jupyter Notebook. I have an Anaconda distribution installed. I installed OpenCV through anaconda and can easily import cv2 in Jupyter Notebook. However, when I import cv2 in Canopy IDE it says "No module named cv2".
How can I safely fix this?
Each Python environment is independent. Installing a package into an anaconda Python environment does not install it into a Canopy Python environment (nor into a different anaconda Python environment). This is a feature, not a bug; it allows different Python environments to be configured differently, even incompatibly.
To use OpenCV in Canopy User Python environment, first install it using the Canopy Package Manager.