collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server is not running - Linux ubuntu 22.04 problem in virtual Enviroment venv

mont13 opened this issue · comments

I found a problem with installation via venv on Linux Ubuntu 22.04.

After installing Python 3.10, I used setup.py from GitHub to install it in a virtual environment.

First, there is no path for libnccl.so.2. You have to add it manually, for example:

export LD_LIBRARY_PATH=/home/xxxx/Documents/python/whisperlive/lib/python3.10/site-packages/nvidia_nccl_cu12-2.20.5-py3.10-linux-x86_64.egg/nvidia/nccl/lib:$LD_LIBRARY_PATH

The second problem is the NumPy version. It is necessary to uninstall the old version with pip uninstall numpy and install a specific version, for example, pip install numpy==1.23.5.

These changes can be added to the script setup.py, for example.
After these changes, the server is running.