运行 conda install -c conda-forge pynini=2.1.5 && pip install WeTextProcessing
报以下错误
Channels:
- conda-forge
- defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
All requested packages already installed.
Collecting WeTextProcessing
Using cached WeTextProcessing-0.1.12-py3-none-any.whl.metadata (5.2 kB)
Collecting pynini==2.1.5 (from WeTextProcessing)
Using cached pynini-2.1.5.tar.gz (627 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/Users/sy/learn/python/ChatTTS/venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/sy/learn/python/ChatTTS/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/sy/learn/python/ChatTTS/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/72/55z_yr217_722gy2v_kb2db80000gn/T/pip-build-env-likb1m7f/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/72/55z_yr217_722gy2v_kb2db80000gn/T/pip-build-env-likb1m7f/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/72/55z_yr217_722gy2v_kb2db80000gn/T/pip-build-env-likb1m7f/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/72/55z_yr217_722gy2v_kb2db80000gn/T/pip-build-env-likb1m7f/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 22, in
ModuleNotFoundError: No module named 'Cython'
[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.