conda安装pynini失败

在部署cosyvoice2时,需要用conda安装pynini,按攻略执行以下命令

conda install -c conda-forge pynini=2.1.5

无法成功,一直保持solving environment:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

根据这个网页的解决方法尝试后无效Solving environment: failed with initial frozen solve. Retrying with flexible solve的解决方法​​​​​​​​​​​​​​Solving environment: failed with initial frozen solve. Retrying with flexible solve的解决方法https://developer.aliyun.com/article/806916最后去掉版本号后安装成功,查看pynini的版本号:

conda list pynini

显示为2.1.6.post1

但此时安装依赖2.1.5版本的pynini的WeTextProcessing包时仍会报错,于是执行:

pip install WeTextProcessing --no-deps

安装成功

Using cached xxhash-3.5.0-cp310-cp310-win_amd64.whl (30 kB) Building wheels for collected packages: llama_omni2, pynini Building editable for llama_omni2 (pyproject.toml) ... done Created wheel for llama_omni2: filename=llama_omni2-1.0.0-0.editable-py3-none-any.whl size=5914 sha256=463050a9a29c8839c17fdbb3060ce71c9658ed7354389df8aebb02247b764f17 Stored in directory: C:\Users\轩\AppData\Local\Temp\pip-ephem-wheel-cache-j5741te9\wheels\12\8f\35\fc4d037562281defad87867b27b31f1688fd6e7cc7b67f7af5 DEPRECATION: Building 'pynini' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to us e the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'pynini'. Discussion can be found at https://github.com/pypa/pip/issues/6334 Building wheel for pynini (setup.py) ... error error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [62 lines of output] D:\program\miniconda3\envs\SecendTest\lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-310\pynini copying pynini\__init__.py -> build
最新发布
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值