I am using PyCharm community version 2017.3.1, and Python 2.7.1. I tried installing opencv through PyCharm but it kept giving me an error.
File "C:/Users/user/PycharmProjects/cameratest/cameratest.py", line 2, in import cv2 ImportError: DLL load failed: %1 is not a valid Win32 application.
I downloaded the opencv executable file and tried moving it to my Python 2.7 file but it would still not work, and I tried following the answer here but to no avail.