MITMF Problem

Apparently, my Kali Linux didn’t have mitmf installed. So I tried to install it but it keeps giving me an error. Also, I’m on lesson 43 on Learn ethical hacking from scratch

Edit: I got mitmf to work, but I notice there a slight problem with it though. The internet is so slow when spoofing causing the user to not really browse the net. So I was wondering how can I fix the slow internet speed when spoofing the target?
Edit2: Nevermind, I found a solution to the internet problem