Complete installation guide for Akron ORM with support for SQLite, MySQL, PostgreSQL, and MongoDB.
Akron ORM can be installed via pip and supports multiple database backends. This guide covers installation for all supported databases and common setup scenarios.
Install Akron using pip. This includes SQLite support by default:
Collecting akron Installing collected packages: akron Successfully installed akron-1.0.0 Akron 1.0.0 installed successfully akron 1.0.0
Install MySQL connector for MySQL database support:
Install PostgreSQL adapter for PostgreSQL database support:
Install MongoDB driver for MongoDB database support:
Install Akron with support for all databases in one command:
ā Akron ORM installed ā SQLite support (built-in) ā MySQL support available ā PostgreSQL support available ā MongoDB support available All database drivers ready!
It's recommended to install Akron in a virtual environment to avoid conflicts:
Alternative installation using conda package manager:
Run this script to verify your installation and test all database connections:
Run the verification script:
Akron ORM Installation Verification ======================================== Python version: 3.9.7 (default, Sep 16 2021, 08:50:36) Test time: 2024-01-15 10:30:45.123456 ---------------------------------------- Akron Import: ā Akron ORM 1.0.0 imported successfully CLI Availability: ā CLI available: akron 1.0.0 Database Drivers: ā SQLite driver available ā MySQL driver available ā PostgreSQL driver available ā MongoDB driver available Basic Functionality: ā Basic CRUD operations working ======================================== VERIFICATION SUMMARY ======================================== Akron Import: PASS CLI Availability: PASS Database Drivers: PASS Basic Functionality: PASS ā All tests passed! Akron is ready to use.
If pip installation fails, try these solutions:
PostgreSQL driver compilation issues on some systems:
MySQL connector installation or connection problems:
Permission denied during installation:
Now that Akron is installed, you're ready to start building applications: