Installation Guide¶
This guide covers all installation methods and platform-specific requirements for Flort.
📦 Quick Installation¶
From PyPI (Recommended)¶
🖥️ Platform-Specific Instructions¶
Linux¶
macOS¶
Windows¶
🐍 Python Version Requirements¶
Python Compatibility
Flort supports Python 3.6+ on all platforms.
Checking Python Version¶
Python Installation¶
If you don't have Python installed:
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.
Using venv (Recommended)¶
# 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¶
🗑️ Uninstallation¶
Remove Flort¶
# Uninstall Flort
pip uninstall flort
# Remove configuration (if any)
rm -rf ~/.flort
# Remove virtual environment
rm -rf flort-env
Clean Installation¶
📞 Getting Help¶
If you encounter issues:
- Check the logs: Run with
--verbose
flag - Search issues: GitHub Issues
- Ask questions: GitHub Discussions
- Report bugs: Use our bug report template
🎯 Next Steps¶
After successful installation:
- Quick Start Guide - Get running in 5 minutes
- Usage Guide - Learn all command options
- Examples - See real-world use cases
- Interactive UI Guide - Master the visual interface
Installation complete! Ready to start using Flort? 🚀