Installation
This guide explains how to install FastAPI-fastkit.
Requirements
To use FastAPI-fastkit, you need to meet the following requirements:
- Python: 3.12 or higher
- Operating System: Windows, macOS, Linux supported
Installation Methods
Install with pip (Recommended)
The simplest installation method:
Install Specific Version
To install a specific version:
Install Development Version
To install the latest development version directly from GitHub:
Development Version Warning
Development versions may be unstable and are not recommended for production environments.
Virtual Environment Setup (Recommended)
It's highly recommended to use a virtual environment to avoid dependency conflicts:
Using venv
Using conda
Verify Installation
After installation, verify that FastAPI-fastkit is installed correctly:
$ fastkit --help
Usage: fastkit [OPTIONS] COMMAND [ARGS]...
FastAPI-fastkit CLI
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
addroute Add a new route to FastAPI project
init Create a new FastAPI project
list-templates List available FastAPI templates
runserver Start FastAPI development server
startdemo Create FastAPI project from template
Troubleshooting
Command not found
If you get a "command not found" error:
- Check if FastAPI-fastkit is installed:
- Check your virtual environment:
- Reinstall FastAPI-fastkit:
Permission errors
If you encounter permission errors during installation:
On Linux/macOS:
On Windows (Run as Administrator):
Python version compatibility
FastAPI-fastkit requires Python 3.12+. Check your Python version:
If you have an older version, please upgrade Python:
- Official Python: python.org/downloads
- With pyenv:
pyenv install 3.12.0 - With conda:
conda install python=3.12
Next Steps
Once installation is complete:
- Quick Start: Create your first project in 5 minutes
- Getting Started Tutorial: Step-by-step detailed tutorial
- CLI Reference: Complete command reference
Installation Tips
- Always use virtual environments for project isolation
- Keep FastAPI-fastkit updated to the latest version
- Check the GitHub repository for updates and issues