This guide provides detailed installation instructions for the YouTube Transcript Keyword Search Tool across different operating systems and environments.
- Python: 3.7 or higher
- Operating System: Windows, macOS, or Linux
- Internet Connection: Required for downloading video transcripts
- Disk Space: ~50MB for installation and dependencies
# Clone the repository
git clone https://github.com/yourusername/youtube-transcript-search.git
cd youtube-transcript-search
# Install dependencies
pip install -r requirements.txt
# Test the installation
python youtube_transcript_search.py --help- Download the repository as ZIP from GitHub
- Extract to your preferred location
- Open terminal/command prompt in the extracted folder
- Run:
pip install -r requirements.txt
If you don't have Python installed:
- Download Python from python.org
- Important: Check "Add Python to PATH" during installation
- Verify installation:
python --version
# Using Homebrew (recommended)
brew install python
# Or download from python.orgsudo apt update
sudo apt install python3 python3-pipsudo yum install python3 python3-pip
# or for newer versions
sudo dnf install python3 python3-pippip install -r requirements.txtpip install youtube-transcript-api>=1.2.2# If you use Anaconda/Miniconda
conda create -n youtube-search python=3.9
conda activate youtube-search
pip install -r requirements.txtUsing a virtual environment prevents dependency conflicts:
# Create virtual environment
python -m venv youtube-search-env
# Activate (Windows)
youtube-search-env\Scripts\activate
# Activate (macOS/Linux)
source youtube-search-env/bin/activate
# Install dependencies
pip install -r requirements.txt
# When done, deactivate
deactivate# Create environment
conda create -n youtube-search python=3.9
# Activate
conda activate youtube-search
# Install dependencies
pip install -r requirements.txtIf you want to install as a system-wide command:
# Install in development mode (editable)
pip install -e .
# Now you can use it from anywhere
youtube-transcript-search --helpCreate a Dockerfile:
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY youtube_transcript_search.py .
ENTRYPOINT ["python", "youtube_transcript_search.py"]Build and run:
docker build -t youtube-transcript-search .
docker run -it youtube-transcript-search --helpTest your installation with these commands:
# Check Python version
python --version
# Test script help
python youtube_transcript_search.py --help
# Test with a sample video
python youtube_transcript_search.py -u "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -k "love" --no-saveExpected output should show the tool processing the video and finding matches.
To update to the latest version:
# If installed via git
cd youtube-transcript-search
git pull origin main
pip install -r requirements.txt
# If dependencies updated, reinstall
pip install --upgrade -r requirements.txt"Python not found"
# Try python3 instead of python
python3 --version
python3 youtube_transcript_search.py --help"pip not found"
# Try python -m pip instead
python -m pip install -r requirements.txt"Permission denied" (Linux/macOS)
# Use --user flag
pip install --user -r requirements.txt
# Or use sudo (not recommended)
sudo pip install -r requirements.txt"Command not found" (Windows)
- Ensure Python is in your PATH
- Try using full path:
C:\Python39\python.exe - Reinstall Python with "Add to PATH" checked
Dependency conflicts
# Use virtual environment (recommended)
python -m venv clean-env
# Activate and install dependencies
# Or create fresh install
pip uninstall youtube-transcript-api
pip install youtube-transcript-api>=1.2.2If you're behind a corporate firewall:
# Configure pip for proxy
pip install --proxy http://proxy.company.com:port -r requirements.txt
# Or set environment variables
export HTTP_PROXY=http://proxy.company.com:port
export HTTPS_PROXY=http://proxy.company.com:portLong path names:
- Enable long path support in Windows 10/11
- Or install closer to root:
C:\youtube-search\
PowerShell execution policy:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserAfter installation, test with this example:
# Interactive mode
python youtube_transcript_search.py
# CLI mode test
python youtube_transcript_search.py -u "https://www.youtube.com/watch?v=dQw4w9WgXcQ" -k "never" --no-saveIf you see search results, your installation is successful! 🎉
- Read the README.md for usage instructions
- Check out the examples in the main documentation
- Try batch processing with multiple videos
If you're still having issues:
- Check you meet the system requirements
- Try the troubleshooting steps
- Search existing issues
- Create a new issue with:
- Your operating system
- Python version (
python --version) - Full error message
- Steps you tried