A developer named JPaulMora created a maintained fork that supports Python 3 and modern GPU drivers (CUDA/OpenCL).
If you don't need GPU support, you can try the PyPI version, though it is less stable: pyrit install kali linux
However, if you’ve tried a simple sudo apt install pyrit on a modern Kali Linux build recently, you likely hit a wall. The original Pyrit project hasn't been updated in years, and modern Python 3 dependencies often break it. A developer named JPaulMora created a maintained fork