# Getting Qt5 version from the Python wheel

**URL:** <https://forums.ankiweb.net/t/getting-qt5-version-from-the-python-wheel/19434>\
**Category:** Help\
**Created:** [April 25, 2022, 3:42pm UTC](https://forums.ankiweb.net/t/getting-qt5-version-from-the-python-wheel/19434 "2022-04-25T15:42:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roastchicken](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@roastchicken](https://forums.ankiweb.net/u/roastchicken)\
**Post date:** [April 25, 2022, 3:42pm UTC](https://forums.ankiweb.net/t/getting-qt5-version-from-the-python-wheel/19434/1 "2022-04-25T15:42:13Z")

</div>

The change to Qt6 has broken Anki on my computer in 2.1.51, because I run a distro without systemd or Qt6. Previously I have been using [the Python wheel](https://betas.ankiweb.net/#via-pypipip) to run Anki, which works fine for 2.1.49. Not so with 2.1.51.

I used `pip install --upgrade aqt` to install Anki (it mysteriously vanished today, hence why I noticed this issue so quickly after the release) and got the following error when attempting to run `pyenv/bin/anki`:

```auto
Traceback (most recent call last):
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/qt/ __init__.py", line 13, in <module>
    import PyQt6
ModuleNotFoundError: No module named 'PyQt6'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/programming/python-math/bin/anki", line 5, in <module>
    from aqt import run
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/ __init__.py", line 45, in <module>
    from aqt import gui_hooks
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/gui_hooks.py", line 11, in <module>
    from aqt.hooks_gen import *
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/hooks_gen.py", line 18, in <module>
    from aqt.qt import QDialog, QEvent, QMenu, QModelIndex, QWidget, QMimeData
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/qt/ __init__.py", line 15, in <module>
    from .qt5 import * # type: ignore
  File "~/programming/python-math/lib/python3.9/site-packages/aqt/qt/qt5.py", line 11, in <module>
    from PyQt5.QtCore import * # type: ignore
ModuleNotFoundError: No module named 'PyQt5'

```

(my home directory name/username has been obfuscated with `~` but other than that this is unedited)

So, I am curious: am I able to indicate to the Python wheel somehow that I want the Qt5 version? As I am unable to use the packaged releases due to their systemd dependency.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [April 26, 2022, 7:35am UTC](https://forums.ankiweb.net/t/getting-qt5-version-from-the-python-wheel/19434/2 "2022-04-26T07:35:01Z")

</div>

PyQt wheels depend on systemd. If you’re providing your own PyQt then you’ll need to use the same instructions as for Linux (ARM):

[https://betas.ankiweb.net/#via-pypipip](https://betas.ankiweb.net/#via-pypipip)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 4:23am UTC](https://forums.ankiweb.net/t/getting-qt5-version-from-the-python-wheel/19434/3 "2023-05-01T04:23:32Z")

</div>


