Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac M1 安装相关依赖失败 #261

Open
ElvisDream opened this issue Dec 4, 2024 · 0 comments
Open

mac M1 安装相关依赖失败 #261

ElvisDream opened this issue Dec 4, 2024 · 0 comments

Comments

@ElvisDream
Copy link

系统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
请教大神这个问题如何解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant