Installation¶
depkeeper can be installed using several methods. Choose the one that best fits your workflow.
Requirements¶
- Python: 3.8 or higher
- Operating System: Windows, macOS, or Linux
Installation Methods¶
pip (Recommended)¶
The simplest way to install depkeeper is via pip:
To install with specific version:
pipx (Isolated Environment)¶
For CLI tools, pipx installs packages in isolated environments:
Bash
# Install pipx if you haven't
pip install pipx
pipx ensurepath
# Install depkeeper
pipx install depkeeper
Why pipx?
pipx is ideal for CLI tools like depkeeper because it:
- Isolates dependencies from your global environment
- Automatically creates and manages virtual environments
- Makes the
depkeepercommand available globally
From Source¶
For development or to get the latest features:
Bash
# Clone the repository
git clone https://github.com/rahulkaushal04/depkeeper.git
cd depkeeper
# Install in development mode
pip install -e .
# Or with development dependencies
pip install -e ".[dev]"
Using Poetry¶
If your project uses Poetry:
Using uv¶
For the fast uv package manager:
Verify Installation¶
After installation, verify that depkeeper is working:
Bash
# Check version
depkeeper --version
# depkeeper 0.1.0
# View available commands
depkeeper --help
Expected output:
Text Only
Usage: depkeeper [OPTIONS] COMMAND [ARGS]...
depkeeper -- modern dependency management for requirements.txt files.
Available commands:
depkeeper check Check for available updates
depkeeper update Update packages to newer versions
Examples:
depkeeper check
depkeeper update
depkeeper -v check
Use ``depkeeper COMMAND --help`` for command-specific options.
Options:
-c, --config PATH Path to configuration file.
-v, --verbose Increase verbosity (can be repeated: -v, -vv).
--color / --no-color Enable or disable colored output.
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
check Check for available updates in requirements file.
update Update packages to newer versions.
Upgrading¶
To upgrade to the latest version:
Uninstalling¶
To remove depkeeper:
Troubleshooting¶
Command Not Found¶
If depkeeper is not found after installation:
-
Check pip installation location:
-
Ensure pip's bin directory is in PATH:
-
Try running as a module:
Permission Errors¶
If you encounter permission errors:
Bash
# Use --user flag
pip install --user depkeeper
# Or use a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Linux/macOS
venv\Scripts\activate # Windows
pip install depkeeper
SSL Certificate Errors¶
If you're behind a corporate proxy:
Next Steps¶
- Quick Start -- Your first depkeeper commands
- Basic Usage -- Learn the fundamentals