jianchang512 / ChatTTS-ui

一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。A simple native web interface that uses ChatTTS to synthesize text into speech, along with support for external API interfaces.
https://pyvideotrans.com
Other
5.1k stars 556 forks source link

mac 安装不了soundfile #60

Closed bigpin closed 1 month ago

bigpin commented 1 month ago
import soundfile as sf

ModuleNotFoundError: No module named 'soundfile'

但是安装soundfile: pip install soundfile  11:38:21

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Requirement already satisfied: soundfile in /Users/dingli/Library/Python/3.9/lib/python/site-packages (0.12.1) Requirement already satisfied: cffi>=1.0 in /Users/dingli/Library/Python/3.9/lib/python/site-packages (from soundfile) (1.16.0) Requirement already satisfied: pycparser in /Users/dingli/Library/Python/3.9/lib/python/site-packages (from cffi>=1.0->soundfile) (2.22) DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621

[notice] A new release of pip is available: 23.2.1 -> 24.0 [notice] To update, run: python3.9 -m pip install --upgrade pip

jianchang512 commented 1 month ago

再运行试试,看起来是安装成功了 要注意是在同一个虚拟环境下运行

jianchang512 commented 1 month ago

先执行 brew install libsndfile

再执行 pip install soundfile

bigpin commented 1 month ago

可以了,之前在vscode里面的终端安装不太行,系统里面直接运行就行