The `aqt` package on PyPI, currently at version 25.9.2, serves as the internal Python module for the Anki flashcard application's graphical user interface. It is built upon the Qt toolkit, primarily through PyQt bindings, and is designed for the development of Anki add-ons and extensions. This package's release cadence is tied directly to the development and release cycle of the Anki application itself, which typically sees frequent updates.
pip install aqtVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to interact with Anki's main window and show a simple info dialog using the `aqt` module, as typically done within an Anki add-on. This code is intended to be run within the Anki application environment, where `aqt.mw` and `aqt.qt` (PyQt bindings) are already initialized.
Ensure you are installing `aqtinstall` if you need the Qt installer, or `aqt` if you are developing Anki add-ons and understand its context.
Use `PyQt` or `PySide` directly for general Qt-based GUI development. Only use `aqt` if you are specifically developing an Anki add-on.
If developing an Anki add-on, run your code within Anki. For standalone GUI development, explicitly install and use a full Qt binding like `PyQt6` or `PySide6`.
Ensure that Anki is installed correctly and that the 'aqt' module is available in your Python environment. If using a virtual environment, activate it before running Anki.
Reinstall Anki to ensure all necessary modules, including '_aqt', are correctly installed.
Install the 'python-qt4' package, which includes 'QtWebKit', to resolve this dependency issue.
Ensure that the 'PyQt5' package is installed correctly, as it includes the 'sip' module.
Update Anki to the latest version to ensure all components are present and correctly installed.