Skip to content

Installation Guide

This guide covers all installation methods and platform-specific requirements for Flort.

📦 Quick Installation

# Install latest stable version
pip install flort

# Verify installation
flort --version
# Install with interactive UI support
pip install flort[ui]

# On Windows specifically
pip install flort windows-curses
# Install latest from GitHub
pip install git+https://github.com/watkinslabs/flort.git

🖥️ Platform-Specific Instructions

Linux

# Update package list
sudo apt update

# Install Python and pip (if needed)
sudo apt install python3 python3-pip

# Install Flort
pip3 install flort

# For development (optional)
sudo apt install python3-dev libncurses5-dev
# Fedora
sudo dnf install python3 python3-pip

# CentOS/RHEL
sudo yum install python3 python3-pip

# Install Flort
pip3 install flort

# Development headers (optional)
sudo dnf install python3-devel ncurses-devel
# Install Python and pip
sudo pacman -S python python-pip

# Install Flort
pip install flort

macOS

# Install Python via Homebrew
brew install python3

# Install Flort
pip3 install flort
# Install Python via MacPorts
sudo port install python39 +universal

# Install Flort
pip3 install flort
# Use system Python (not recommended)
pip3 install --user flort

# Add to PATH if needed
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc

Windows

# Using pip
pip install flort

# For interactive UI
pip install windows-curses

# Or install everything
pip install flort[ui]
# Using PowerShell
python -m pip install flort

# With UI support
python -m pip install flort[ui]
# Using cmd
py -m pip install flort

# Verify installation
flort --version

🐍 Python Version Requirements

Python Compatibility

Flort supports Python 3.6+ on all platforms.

Checking Python Version

# Check Python version
python --version
# or
python3 --version

# Check pip version
pip --version

Python Installation

If you don't have Python installed:

# Ubuntu/Debian
sudo apt install python3 python3-pip

# Fedora
sudo dnf install python3 python3-pip
# Download from python.org or use Homebrew
brew install python3

Download from python.org and ensure "Add to PATH" is checked during installation.

🔧 Virtual Environment Setup

Recommended Approach

Always use virtual environments to avoid dependency conflicts.

# Create virtual environment
python -m venv flort-env

# Activate (Linux/macOS)
source flort-env/bin/activate

# Activate (Windows)
flort-env\Scripts\activate

# Install Flort
pip install flort

# Deactivate when done
deactivate

Using conda

# Create conda environment
conda create -n flort python=3.9

# Activate environment
conda activate flort

# Install Flort
pip install flort

# Deactivate
conda deactivate

Using pipenv

# Install pipenv (if needed)
pip install pipenv

# Create environment and install
pipenv install flort

# Activate shell
pipenv shell

# Run Flort
flort --help

🛠️ Development Installation

Clone and Install

# Clone repository
git clone https://github.com/watkinslabs/flort.git
cd flort

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/macOS
# or venv\Scripts\activate  # Windows

# Install in development mode
pip install -e .

# Install development dependencies
pip install -e .[dev]

Development Dependencies

# Testing tools
pip install pytest pytest-cov

# Code quality
pip install black flake8 isort mypy

# Documentation
pip install -r docs/requirements.txt

# All development tools
pip install -e .[dev,docs]

📱 Interactive UI Support

Linux/macOS

Usually included with Python:

# Test curses availability
python -c "import curses; print('✅ Curses available')"

# If missing, install development packages
# Ubuntu/Debian
sudo apt install python3-dev libncurses5-dev

# Fedora
sudo dnf install python3-devel ncurses-devel

Windows

Requires additional package:

# Install curses support for Windows
pip install windows-curses

# Test installation
python -c "import curses; print('✅ Curses available')"

# Or install Flort with UI support
pip install flort[ui]

✅ Verification

Basic Installation Check

# Check version
flort --version

# Display help
flort --help

# Test basic functionality
flort . --extensions txt --manifest --max-depth 1

Interactive UI Check

# Test curses support
python -c "
try:
    import curses
    print('✅ Interactive UI supported')
except ImportError:
    print('❌ Interactive UI not available')
"

# Test Flort UI (exit with 'q')
flort --ui

Full Feature Test

# Create test directory
mkdir flort-test
cd flort-test

# Create test files
echo "print('hello')" > test.py
echo "# Test Project" > README.md

# Test all major features
flort . --extensions py,md --outline --output test.txt

# Check output
cat test.txt

# Cleanup
cd ..
rm -rf flort-test

🚨 Troubleshooting

Common Issues

Permission Errors

# Use --user flag
pip install --user flort

# Or create virtual environment
python -m venv venv
source venv/bin/activate
pip install flort

Command Not Found

# Check if pip installed to user directory
python -m pip show flort

# Add to PATH (Linux/macOS)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# Windows: Add Python Scripts folder to PATH

Import Errors

# Reinstall in clean environment
pip uninstall flort
pip install flort

# Check Python path
python -c "import sys; print(sys.path)"

UI Not Working

# Windows: Install curses support
pip install windows-curses

# Linux: Install development packages
sudo apt install python3-dev libncurses5-dev

# Test fallback mode
flort . --extensions py  # Skip --ui flag

Platform-Specific Issues

macOS

# If using system Python and getting SSL errors
/Applications/Python\ 3.x/Install\ Certificates.command

# If pip is outdated
python -m pip install --upgrade pip

Windows

# If getting "Microsoft Visual C++ required" error
# Download and install Microsoft C++ Build Tools

# If Python is not in PATH
py -m pip install flort

Linux

# If getting "No module named _curses"
sudo apt install python3-dev libncurses5-dev

# If pip install fails with permissions
pip install --user flort

🔄 Updating

Update to Latest Version

# Update from PyPI
pip install --upgrade flort

# Update development installation
cd flort
git pull
pip install -e .

Check for Updates

# Check current version
flort --version

# Check available versions
pip index versions flort

🗑️ Uninstallation

Remove Flort

# Uninstall Flort
pip uninstall flort

# Remove configuration (if any)
rm -rf ~/.flort

# Remove virtual environment
rm -rf flort-env

Clean Installation

# Completely clean install
pip uninstall flort
pip cache purge
pip install flort

📞 Getting Help

If you encounter issues:

  1. Check the logs: Run with --verbose flag
  2. Search issues: GitHub Issues
  3. Ask questions: GitHub Discussions
  4. Report bugs: Use our bug report template

🎯 Next Steps

After successful installation:

  1. Quick Start Guide - Get running in 5 minutes
  2. Usage Guide - Learn all command options
  3. Examples - See real-world use cases
  4. Interactive UI Guide - Master the visual interface

Installation complete! Ready to start using Flort? 🚀