Complete installation instructions for the Gmail to NotebookLM converter.
- Python 3.9 or higher (Download Python)
- pip (Python package installer - included with Python 3.4+)
- Git (optional, for cloning the repository)
- Google account with Gmail access
- Google Cloud Project with Gmail API enabled (see OAUTH_SETUP.md)
# 1. Clone or download the repository
git clone https://github.com/yourusername/gmail-to-notebooklm.git
cd gmail-to-notebooklm
# 2. Create a virtual environment (recommended)
python -m venv .venv
# 3. Activate the virtual environment
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate
# 4. Install dependencies
pip install -r requirements.txt
# 5. Install the package in development mode
pip install -e .
# 6. Set up OAuth credentials (see OAUTH_SETUP.md)
# Place your credentials.json in the project root
# 7. Test the installation
gmail-to-notebooklm --helpVerify Python is installed and meets the version requirement:
python --version
# Should show Python 3.9.0 or higherIf Python is not installed or the version is too old, download and install from python.org.
Option A: Clone with Git (recommended)
git clone https://github.com/yourusername/gmail-to-notebooklm.git
cd gmail-to-notebooklmOption B: Download ZIP
- Download the ZIP file from the repository
- Extract to a directory of your choice
- Open a terminal/command prompt in that directory
Using a virtual environment is strongly recommended to avoid dependency conflicts:
# Create virtual environment
python -m venv .venv
# This creates a .venv directory in your projectWhy use a virtual environment?
- Isolates project dependencies from system Python packages
- Prevents version conflicts with other Python projects
- Makes the project portable and reproducible
Windows (Command Prompt):
.venv\Scripts\activateWindows (PowerShell):
.venv\Scripts\Activate.ps1macOS/Linux:
source .venv/bin/activateYou should see (.venv) at the beginning of your command prompt, indicating the virtual environment is active.
With the virtual environment activated:
pip install --upgrade pip
pip install -r requirements.txtThis installs:
- Google API client libraries
- OAuth authentication libraries
- HTML parsing and Markdown conversion tools
- CLI utilities
Install the package in editable/development mode:
pip install -e .This makes the gmail-to-notebooklm command available system-wide (within your virtual environment).
Follow the complete guide in OAUTH_SETUP.md to:
- Create a Google Cloud Project
- Enable the Gmail API
- Configure OAuth consent screen
- Download
credentials.json - Place
credentials.jsonin the project root directory
Test that everything is installed correctly:
# Check the CLI is available
gmail-to-notebooklm --version
# View help
gmail-to-notebooklm --helpOn your first run, you'll need to authenticate:
gmail-to-notebooklm --label "Test" --output-dir "./test_output"This will:
- Open your default web browser
- Prompt you to sign in to Google
- Ask for permission to read Gmail (readonly access)
- Save a
token.jsonfile for future use
If you're contributing to the project or want to run tests:
# Install with development dependencies
pip install -e ".[dev]"
# This includes pytest, black, flake8, mypy, etc.Run these commands to ensure everything works:
# 1. Check Python version
python --version
# 2. Verify the CLI is installed
gmail-to-notebooklm --version
# 3. Check installed packages
pip list | grep google-api
pip list | grep beautifulsoup4
pip list | grep html2text
# 4. Test with help command
gmail-to-notebooklm --helpTo update to the latest version:
# Pull latest changes (if using git)
git pull origin main
# Reinstall dependencies (in case they changed)
pip install -r requirements.txt
# Reinstall the package
pip install -e .To completely remove the tool:
# Deactivate virtual environment (if active)
deactivate
# Remove virtual environment directory
# On Windows:
rmdir /s .venv
# On macOS/Linux:
rm -rf .venv
# Optionally, remove the entire project directorySolution: Python is not installed or not in your PATH.
- Install Python from python.org
- On Windows, ensure "Add Python to PATH" is checked during installation
Solution: pip is not installed.
# Download get-pip.py
python -m ensurepip --upgradeSolution: Dependencies not installed properly.
# Ensure virtual environment is activated
# Then reinstall
pip install -r requirements.txtSolution: Package not installed or virtual environment not activated.
# Activate virtual environment
source .venv/bin/activate # macOS/Linux
.venv\Scripts\activate # Windows
# Install package
pip install -e .Windows Solution:
# Run Command Prompt as AdministratormacOS/Linux Solution:
# Don't use sudo - use a virtual environment instead
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtSolution: Update certificates.
pip install --upgrade certifi- Use Command Prompt or PowerShell
- PowerShell may require execution policy changes for virtual environment activation:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Python 2.7 comes pre-installed but is deprecated
- Use
python3andpip3explicitly ifpythonpoints to Python 2.7 - You may need to install Xcode Command Line Tools:
xcode-select --install
- Install Python from your distribution's package manager:
# Debian/Ubuntu sudo apt update sudo apt install python3 python3-pip python3-venv # Fedora sudo dnf install python3 python3-pip # Arch sudo pacman -S python python-pip
- Read QUICKSTART.md for a quick getting started guide
- See USAGE.md for comprehensive usage instructions
- Review CONFIGURATION.md for configuration options
If you encounter issues not covered here:
- Check OAUTH_SETUP.md for authentication issues
- Review GitHub Issues
- Open a new issue with details about your problem