-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequirements_linux.txt
More file actions
68 lines (59 loc) · 1.59 KB
/
requirements_linux.txt
File metadata and controls
68 lines (59 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# ============================================================
# requirements_linux.txt — WSL2 / Ubuntu install guide
# ============================================================
#
# STEP 1 — System packages (run these in the terminal first):
#
# sudo apt update && sudo apt upgrade -y
# sudo apt install -y python3-dev build-essential \
# tesseract-ocr \
# libmupdf-dev \
# libgl1
#
# STEP 2 — Create and activate venv:
#
# python3 -m venv .venv
# source .venv/bin/activate
# pip install --upgrade pip
#
# STEP 3 — Install PyTorch with CUDA (do this BEFORE pip install -r):
#
# pip install torch torchvision \
# --index-url https://download.pytorch.org/whl/cu121
#
# (CPU-only fallback — if no GPU / CUDA in WSL:)
# pip install torch torchvision \
# --index-url https://download.pytorch.org/whl/cpu
#
# STEP 4 — Then install the rest normally:
#
# pip install -r requirements_linux.txt
#
# ============================================================
# Core web framework
Django>=4.2
# Vector database
chromadb>=0.4.22
# PDF processing / OCR
PyMuPDF>=1.23.0
pytesseract>=0.3.10 # also needs: sudo apt install tesseract-ocr
Pillow>=10.0.0
# AI / LLM clients
ollama>=0.1.7
google-generativeai>=0.3.2
huggingface_hub>=0.20.0
transformers>=4.40.0
accelerate>=0.20.0
sentencepiece>=0.1.99
# ML / Numerical
numpy>=1.24.0
# Django add-ons
django-cors-headers>=4.0.0
# Utilities
requests>=2.31.0
python-dotenv>=1.0.1
# Testing
pytest>=7.0.0
# NOTE: torch is intentionally excluded here.
# Install it manually with the CUDA index URL in Step 3 above.
# torch>=2.0.0