I'm trying to make my own package which uses OpenCV Python module cv2
. However when using PyCharm, it warns that the
Package requirement is not satisfied.
I suspect this is because I used the recommended method of copy/pasting cv2.pyd
into my python dir. Note that pip install cv2
doesn't work.
What's the right method to ensure that requirements are met when this package is brought in?
EDIT:
My setup.py file is as follows
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)
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.