title: Installation of tflite-model-maker on mac fails
body: <p>I'm completely new on Python, so using PyCharm 2022.1 I'm trying to install tflite-model-maker on mac but always fail. Returned errors are:</p>
  <pre><code>An error occurred while building with CMake.
          Command:
            cmake --build . --target install --config Release --
          Install target:
            install
          Source directory:
            /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f
          Working directory:
            /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/_skbuild/macosx-10.13-x86_64-3.7/cmake-build
        Please check the install target is valid and see CMake's output for more information.
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for opencv-python-headless
  Failed to build opencv-python-headless
  ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects
  </code></pre>
  <p>And earlier in the whole terminal report:</p>
  <pre><code> In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_numpy.cpp:6:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_numpy.hpp:4:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2.hpp:36:
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: use of undeclared identifier 'PyTuple_GET_SIZE'
            if (PyTuple_GET_SIZE(value) != 3) {
                ^
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: use of undeclared identifier 'PyTuple_GET_ITEM'
            title = PyTuple_GET_ITEM(value, 2);
                    ^
        2 errors generated.
        [1091/1100] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o
        FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o
  
  ...
  
  In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_highgui.cpp:1:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_highgui.hpp:4:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2.hpp:36:
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: use of undeclared identifier 'PyTuple_GET_SIZE'
            if (PyTuple_GET_SIZE(value) != 3) {
                ^
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: use of undeclared identifier 'PyTuple_GET_ITEM'
            title = PyTuple_GET_ITEM(value, 2);
                    ^
        2 errors generated.
        [1092/1100] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o
        FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o
  
  ...
  
  In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_util.cpp:1:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2_util.hpp:4:
        In file included from /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-install-_60a3wey/opencv-python-headless_f3f9ce9981dd47e2bd8cf7f7b304f20f/opencv/modules/python/src2/cv2.hpp:36:
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: use of undeclared identifier 'PyTuple_GET_SIZE'
            if (PyTuple_GET_SIZE(value) != 3) {
                ^
        /private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: use of undeclared identifier 'PyTuple_GET_ITEM'
            title = PyTuple_GET_ITEM(value, 2);
                    ^
        2 errors generated.
        [1093/1100] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidcore_func.avx2.cpp.o
        [1094/1100] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/common/serialization.cpp.o
        [1095/1100] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidimgproc_func.avx2.cpp.o
        ninja: build stopped: subcommand failed.
          File &quot;/private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py&quot;, line 645, in setup
            cmkr.make(make_args, install_target=cmake_install_target, env=env)
          File &quot;/private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/skbuild/cmaker.py&quot;, line 660, in make
            self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
          File &quot;/private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8/overlay/lib/python3.7/site-packages/skbuild/cmaker.py&quot;, line 699, in make_impl
  
  </code></pre>
  <p>And the directory &quot;/private/var/folders/wc/kmpkxd0x57v762v9j6_xcswh0000gn/T/pip-build-env-pt4hwpl8&quot; doesn't exists.</p>
  <p>As far as I can understand, errors are found, the process is stopped and the created files and folders are deleted, so at the last command cmake can't find any source folder.
  The question is obviously why are those errors (use of undeclared identifier 'PyTuple_GET_SIZE', use of undeclared identifier 'PyTuple_GET_ITEM') found. Is it a matter of package versions?  I use python 3.7 and followed information stored in TF requirement page...</p>
  <p>Or maybe I'm missing a general option somewhere?</p>
  <p>Also tried to install directly opencv-python-headless but identical result.</p>
  <p>I use PyCharm 2022.1.</p>
  <p>Any idea will be appreciated.</p>
  <p>Thanks in advance,
  regards.</p>