You need the kernel headers and build tools.
Here is how to install the good community driver. driver tp link tl wn725n
You need the Pi-specific branch. Use git clone -b v5.2.2.4 https://github.com/aircrack-ng/rtl8188eus You need the kernel headers and build tools
sudo modprobe -r r8188eu echo "blacklist r8188eu" | sudo tee /etc/modprobe.d/blacklist-tp-link.conf driver tp link tl wn725n
Selecting the wrong version on the download page can lead to installation failure. Download for TL-WN725N V3.60 - TP-Link