Add system dependencies for Debian/Ubuntu to requirements.txt

Added comprehensive system dependencies section for Debian/Ubuntu:

Required system packages:
- build-essential, cmake, pkg-config (build tools)
- ffmpeg (video processing)
- libavformat-dev, libavcodec-dev, libavdevice-dev, libavutil-dev
- libavfilter-dev, libswscale-dev, libswresample-dev (FFmpeg dev libs)
- libsdl2-dev, libssl-dev, libcurl4-openssl-dev
- python3-dev

These are required for:
- PyAV (av package) - needed by audiocraft/MusicGen
- face-recognition (dlib)
- Building Python extensions

Updated quick install instructions to include system dependencies step.
parent b0d43691
...@@ -71,6 +71,33 @@ werkzeug>=3.0.1 ...@@ -71,6 +71,33 @@ werkzeug>=3.0.1
# Optional: NSFW Classification # Optional: NSFW Classification
# onnxruntime>=1.17.0 # onnxruntime>=1.17.0
# ============================================================================
# SYSTEM DEPENDENCIES (Debian/Ubuntu)
# ============================================================================
#
# BEFORE installing Python packages, install these system dependencies:
#
# sudo apt-get update
# sudo apt-get install -y \
# build-essential \
# cmake \
# pkg-config \
# ffmpeg \
# libavformat-dev \
# libavcodec-dev \
# libavdevice-dev \
# libavutil-dev \
# libavfilter-dev \
# libswscale-dev \
# libswresample-dev \
# libsdl2-dev \
# libssl-dev \
# libcurl4-openssl-dev \
# python3-dev
#
# For face-recognition (optional):
# sudo apt-get install -y libdlib-dev
#
# ============================================================================ # ============================================================================
# INSTALLATION NOTES FOR PYTHON 3.12+ # INSTALLATION NOTES FOR PYTHON 3.12+
# ============================================================================ # ============================================================================
...@@ -90,12 +117,14 @@ werkzeug>=3.0.1 ...@@ -90,12 +117,14 @@ werkzeug>=3.0.1
# pip install git+https://github.com/huggingface/transformers.git # pip install git+https://github.com/huggingface/transformers.git
# #
# 5. For face-recognition (requires dlib): # 5. For face-recognition (requires dlib):
# - On Ubuntu/Debian: sudo apt-get install cmake # - On Ubuntu/Debian: sudo apt-get install cmake libdlib-dev
# - pip install dlib # - pip install dlib
# - pip install face-recognition # - pip install face-recognition
# #
# 6. For audiocraft (MusicGen): # 6. For audiocraft (MusicGen) - requires FFmpeg dev libraries:
# pip install audiocraft # - Install system dependencies first (see above)
# - pip install av # May need: pip install av --no-binary av
# - pip install audiocraft
# #
# 7. For bark (TTS): # 7. For bark (TTS):
# pip install git+https://github.com/suno-ai/bark.git # pip install git+https://github.com/suno-ai/bark.git
...@@ -104,9 +133,23 @@ werkzeug>=3.0.1 ...@@ -104,9 +133,23 @@ werkzeug>=3.0.1
# QUICK INSTALL (Python 3.12+) # QUICK INSTALL (Python 3.12+)
# ============================================================================ # ============================================================================
# #
# # 1. Install system dependencies first:
# sudo apt-get update && sudo apt-get install -y \
# build-essential cmake pkg-config ffmpeg \
# libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
# libavfilter-dev libswscale-dev libswresample-dev \
# libsdl2-dev libssl-dev python3-dev
#
# # 2. Install PyTorch with CUDA:
# pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121 # pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
#
# # 3. Install xformers:
# pip install --pre xformers # pip install --pre xformers
#
# # 4. Install latest diffusers and transformers:
# pip install git+https://github.com/huggingface/diffusers.git # pip install git+https://github.com/huggingface/diffusers.git
# pip install git+https://github.com/huggingface/transformers.git # pip install git+https://github.com/huggingface/transformers.git
#
# # 5. Install remaining dependencies:
# pip install -r requirements.txt --break-system-packages # pip install -r requirements.txt --break-system-packages
# #
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment