Unable to install MITMf in Kali Linux — something to do with python and pip version 3 compatibilty


So i decided to install the MITMf (Man-In-The-Middle Framework) https://github.com/byt3bl33d3r/MITMf for Kali, but even after following the exact steps in the installation guide, i keep coming back to a error that I think has to do with Python 2.7’s end of life. When I run mitmf.py using the latest version of Python(3.8), i get SyntaxErrors. But when I run it with Python2/2.7, I get ImportErrors, which i am unsure of how to fix. I tried exporting the python modules to my .bashrc, but I don’t think I did it the right way. Here are some errors that i get when using Python2/2.7 :

  File "mitmf.py", line 29, in <module>     import core.responder.settings as settings   File "/home/kali/MITMf/core/responder/settings.py", line 24, in <module>     from core.configwatcher import ConfigWatcher   File "/home/kali/MITMf/core/configwatcher.py", line 20, in <module>     import pyinotify ImportError: No module named pyinotify 

And here is the simple syntax error when i use Python3.8:

File "../mitmf.py", line 38     print get_banner()           ^ SyntaxError: invalid syntax 

I do know Python3, but not enought to convert the whole program. I tried using 2to3 https://docs.python.org/2/library/2to3.html but it didn’t work quite right. What can i do?