ChatTTS-ui icon indicating copy to clipboard operation
ChatTTS-ui copied to clipboard

mac M1 安装相关依赖失败

Open ElvisDream opened this issue 11 months ago • 0 comments
trafficstars

系统mac OS:15 python版本:3.10

  1. 执行pip3 install -r requirements.txt 命令会失败: Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [24 lines of output] Traceback (most recent call last): File "/Users/a1/Documents/个人/MyProject/Python/chattts/ChatTTS-ui-main/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() ~~~~^^ File "/Users/a1/Documents/个人/MyProject/Python/chattts/ChatTTS-ui-main/venv/lib/python3.13/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/a1/Documents/个人/MyProject/Python/chattts/ChatTTS-ui-main/venv/lib/python3.13/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/nf/f9w8x1xs6kz3jzpd_cvgpkw80000gn/T/pip-build-env-jkkfo9s5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/nf/f9w8x1xs6kz3jzpd_cvgpkw80000gn/T/pip-build-env-jkkfo9s5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires self.run_setup() ~~~~~~~~~~~~~~^^ File "/private/var/folders/nf/f9w8x1xs6kz3jzpd_cvgpkw80000gn/T/pip-build-env-jkkfo9s5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup super().run_setup(setup_script=setup_script) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/nf/f9w8x1xs6kz3jzpd_cvgpkw80000gn/T/pip-build-env-jkkfo9s5/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup exec(code, locals()) ~~~~^^^^^^^^^^^^^^^^ File "", line 51, in File "", line 48, in _guard_py_ver RuntimeError: Cannot install on Python version 3.13.0; only versions >=3.9,<3.13 are supported. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. 2. 在虚拟环境中安装torch相关依赖始终失败: ERROR: Could not find a version that satisfies the requirement torch==2.2.0 (from versions: none)

[notice] A new release of pip is available: 24.2 -> 24.3.1 [notice] To update, run: pip install --upgrade pip ERROR: No matching distribution found for torch==2.2.0 请教大神这个问题如何解决?

ElvisDream avatar Dec 04 '24 09:12 ElvisDream