title: How do I add cv2 as a requirement in a python package?
body: <p>I'm trying to make my own package which uses OpenCV Python module <code>cv2</code>. However when using PyCharm, it warns that the </p>
  
  <blockquote>
    <p>Package requirement is not satisfied.</p>
  </blockquote>
  
  <p>I suspect this is because I used the recommended method of copy/pasting <code>cv2.pyd</code> into my python dir. Note that <code>pip install cv2</code>  doesn't work.</p>
  
  <p>What's the right method to ensure that requirements are met when this package is brought in?</p>
  
  <p>EDIT:</p>
  
  <p>My setup.py file is as follows</p>
  
  <pre><code>from setuptools import setup
  
  setup(name='image_processing',
        version='0.1',
        install_requires=['numpy', 'scipy', 'cv2'],
        description='Collection of useful image processing functions',
        url='',
        author='Bill',
        license='MIT',
        packages=['image_processing'],
        zip_safe=False)
  </code></pre>
  
  <p>This is where the error shows up when trying to package my code. Normally I have no issues importing numpy or cv2. I installed Numpy using pip, and cv2 via the method mentioned above. Everything works if I just run scripts using cv2, but it's this packaging that's tricking me up.</p>