Python 3.10 is best for windows 11 setup
After a couple of days of intense debugging, I managed to get the server running on Windows and wanted to share my findings to help others who might be stuck.
If you're encountering endless pip backtracking, resolution-too-deep errors, ONNX build failures, or CMake errors, this guide is for you. The Root Cause of the "Dependency Chaos"
The core issue is a version mismatch between Python and the pre-built binaries (wheels) for key dependencies.
The Problem: Using Python 3.11 or newer on Windows forces pip to build packages like onnx from source code because pre-built wheels don't exist for that combination. This triggers a cascade of failures:
The build fails if you don't have CMake and Visual C++ Build Tools installed. Even with those tools, it causes pip's dependency resolver to enter an endless loop trying to solve complex conflicts, eventually leading to the resolution-too-deep error. The Happy Path: Python 3.10 has pre-built Windows wheels available for all the required dependencies. The installation process completely avoids building from source, making it fast and error-free.
The Simple Solution: Use Python 3.10
To save yourself hours of frustration, follow these steps for a clean and successful installation on Windows:
Install Python 3.10.11: Download the official 64-bit installer from [python.org]
IMPORTANT: During installation, make sure to check the box that says "Add Python 3.10 to PATH" (If you want python 10 available globally for other projects).
Start Fresh: Delete your existing Chatterbox-TTS-Server folder and clone a fresh copy from GitHub. Run start.bat: That's it. The installation should now complete without any dependency errors.
Secondary Issue: Server Fails to Start Due to Download Timeout
Once the installation is complete, the server needs to download several large model files (often 1-2 GB each). The launcher script (start.py) has a default timeout of 180 seconds (3 minutes). If your internet connection is slow, the download will not finish in time, and the launcher will kill the server process.
The Fix: Open start.py in a text editor. Find this line (around line 80-90):
SERVER_STARTUP_TIMEOUT = 180 Change 180 to a much larger number, like 1800 (30 minutes), to ensure the download has time to complete.
SERVER_STARTUP_TIMEOUT = 1800 Save the file and run start.bat again. The server will now wait long enough for the models to download. This is a one-time download. Suggestion for the Maintainers (@devnen): Thank you for this amazing project! To improve the out-of-the-box experience for Windows users, I would suggest: Updating the README.md to strongly recommend Python 3.10.x for Windows installations. Increasing the default SERVER_STARTUP_TIMEOUT in start.py to a more generous value like 900 or 1800 to account for large model downloads on average internet speeds. Hopefully, this helps everyone get up and running smoothly, as it helped me to get rid of issues
Thanks for the detailed writeup. I really appreciate you taking the time to document this after debugging it. The Python wheel availability issue on Windows and the tight startup timeout were causing problems.
I've updated start.py to handle both of these automatically:
The launcher now detects when you're running Python 3.11+ on Windows and offers to download a local, portable Python 3.10 automatically. It's a self-contained copy inside the project folder. Your system Python and any other installations stay completely untouched. You can also skip it and use your own Python if you prefer.
Startup timeout is increased the default to 1800 seconds (30 minutes) so first-run model downloads have plenty of time to finish, even on slower connections.
Thanks again for the suggestions.