Error Deploy python egg_info did not run successfully

I was in the process of deploying and found the error details below

error: subprocess-exited-with-error
  × python egg_info did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      /home/appuser/venv/lib/python3.9/site-packages/setuptools/ SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
              Please replace its usage with implicit namespaces (PEP 420).
              See for details.
        ep.load()(self,, value)
      running egg_info
      error: PyObjC requires macOS to build
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.3; however, version 23.1.2 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed

Why do you want PyObjC installed in your deployment environment?