-1

I'm using Python 2.7 and Pycharm IDE (32-bit) in Windows 10 (64-bit). I have installed numpy 1.8 and copied cv2.pyd to C:\Python27\Lib\site-packages.

when I import numpy it shows no error but after that when i import cv2 it says: module not found.

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213

1 Answers1

0

Follow the link How to install OpenCV on Windows and enable it for PyCharm without using the package manager

Install Python 2.7.10
Install Pycharm(If you have not done it already)
Download and install the OpenCV executable.
Add OpenCV in the system path(%OPENCV_DIR% = /path/of/opencv/directory)
Goto C:\opencv\build\python\2.7\x86 folder and copy cv2.pyd file.
Goto C:\Python27\DLLs directory and paste the cv2.pyd file.
Goto C:\Python27\Lib\site-packages directory and paste the cv2.pyd file.
Goto PyCharm IDE and goto DefaultSettings>PythonInterpreter.
Select the Python which you have installed on Step1.
Install the packages numpy,matplotlib and pip in pycharm.
Restart your PyCharm.
PyCharm now has OpenCV library installed and working.
Community
  • 1
  • 1
webapp
  • 710
  • 1
  • 6
  • 16