I have tested opencv using Python on anaconda virtual environment in Windows 10.
If you have 64-bit Windows installed on your PC, download the 64-bit installation files.
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
To use the OpenCV3.4.1 version of python3.6 from this URL, download the file :
opencv_python-3.4.1 + contrib-cp36-cp36m-win_amd64.whl
in the C: \ Users \ {USER}
directory.
To test the Anaconda Prompt, run:
conda --version
Creating an environment
conda create --name OpenCV_3.4 python=3.6
Activating an environment
activate OpenCV_3.4
Run from anaconda prompt:
activate OpenCV_3.4
pip install opencv_python-3.4.1 + contrib-cp36-cp36m-win_amd64.whl
To verify that opencv is downloaded:
import cv2
When generating pycharm project, interpreter setting :
clik File->Setting