“xxx”"模块已经安装还是报错,路径可能有问题:
通过绝对路径包含:
import sys
sys.path.append(“/path/to/module”)
from indextts.infer import IndexTTS
更灵活的方式配置环境变量:
export PYTHONPATH=/path/to/module:$PYTHONPATH
“xxx”"模块已经安装还是报错,路径可能有问题:
通过绝对路径包含:
import sys
sys.path.append(“/path/to/module”)
from indextts.infer import IndexTTS
更灵活的方式配置环境变量:
export PYTHONPATH=/path/to/module:$PYTHONPATH