Dependency conflicts are usually caused by mismatched Python environments or incompatible library versions, and can be resolved by following these steps:
- Creating a standalone virtual environment: Use
conda create -n moss_ttsd python=3.10 -yCreate a pure environment to avoid conflicts with other projects - Step-by-step installation of dependencies: Install the base dependencies first
pip install -r requirements.txtIf you want to compile the libraries, you should install the libraries that need to be compiled such asflash-attn - Checking CUDA compatibility: Ensure that the GPU driver version matches the PyTorch version with the
nvidia-smicap (a poem)torch.cuda.is_available()validate (a theory) - alternative: If you still get an error, try using
pip install --upgrade --force-reinstallForce reinstallation of conflicting libraries, or isolate the environment using Docker containers
This answer comes from the articleMOSS-TTSD: An Open Source Bilingual Dialog Speech Generation ToolThe































