Repository: stable-diffusion-webui
Issue: [Bug]: subprocess-exited-with-error On MacOS（M3 Max）
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

The WebUI doesn't run on macOS on an Apple Silicon Mac（M3 Max）

### Steps to reproduce the problem

1.brew install cmake protobuf rust python@3.10 git wget
2.Install WebUI using git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
3.Go to cd stable-diffusion-webui
4.Run ./webui.sh

### What should have happened?

WebUI should open after dependencies are installed.

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

Not applicable

### Console logs

```Shell
./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on cengsijian user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.0a2+ (heads/master:79d2e62, Nov 24 2020, 07:58:13)
[Clang 12.0.0 (clang-1200.0.32.27)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Installing clip
Traceback (most recent call last):
  File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/modules/launch_utils.py", line 393, in prepare_environment
    run_pip(f"install {clip_package}", "clip")
  File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/modules/launch_utils.py", line 143, in run_pip
    return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
  File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/modules/launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/venv/bin/python3.10" -m pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
  Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'

stderr:   error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [26 lines of output]
      <string>:3: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      Traceback (most recent call last):
        File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/cengsijian/Desktop/SDXL/stable-diffusion-webui/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 6, in <module>
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
          _install_setup_requires(attrs)
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 71, in _install_setup_requires
          dist = MinimalDistribution(attrs)
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 53, in __init__
          super().__init__(filtered)
        File "/private/var/folders/g1/6c0xfjcs0193y11m7h93xl3h0000gn/T/pip-build-env-d20wbxy1/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 301, in __init__
          for ep in metadata.entry_points(group='distutils.setup_keywords'):
      TypeError: entry_points() got an unexpected keyword argument 'group'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
```


### Additional information

_No response_