Windows livekit
LiveKit Installation Guide for Windows
Required Software
- Git
- Python (version 3.11.9 recommended)
- Poetry (Python package manager)
- LiveKit server for Windows
- FFmpeg
Installation Steps
1. Python Installation
Install Python 3.11.9 (latest version < 3.12) using the binary installer.
2. Poetry Installation
Poetry installation on Windows can be challenging. If you encounter SSL certificate verification issues, try this workaround:
-
Download the installation script from https://install.python-poetry.org/ and save it as
install-poetry.py
. -
Modify the
get(self, url):
method in the script to disable certificate verification: -
Run the modified script to install Poetry.
-
Add Poetry’s bin directory to your PATH:
- Path:
C:\Users\[USERNAME]\AppData\Roaming\Python\Scripts
- Follow the guide at: https://www.java.com/en/download/help/path.html
- Path:
3. LiveKit Server Installation
- Download the latest release of LiveKit server for Windows (e.g.,
livekit_1.7.2_windows_amd64.zip
). - Extract the
livekit-server.exe
file to your/software
directory.
4. FFmpeg Installation
- Download the FFmpeg Windows build from: https://github.com/BtbN/FFmpeg-Builds/releases
- Choose the
ffmpeg-master-latest-win64-gpl.zip
(non-shared suffix) version.
- Choose the
- Extract the compressed zip and add the FFmpeg bin directory to your PATH.
5. Final Setup
-
Run
poetry install
. If you encounter an error about Microsoft Visual C++, install “Microsoft C++ Build Tools”:- Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- In the installation popup, select “Desktop Development with C++” with preselected components.
-
Set up your Anthropic API key:
-
Modify
main.py
to correctly locate and run the LiveKit server:- Set the LiveKit path:
- Modify the server command for Windows:
Note: Remove the
> /dev/null 2>&1
section from the command as it’s not compatible with Windows. - Set the LiveKit path:
Troubleshooting
- If you encounter “ffmpeg not found” errors or issues when sending messages, ensure FFmpeg is correctly installed and added to your PATH.
- For any SSL certificate issues during installation, refer to the Poetry installation workaround provided above.