I use an Edimax AC600 series USB wireless device for my raspberry pi on Raspbian. Here is the easy way to install the driver for it.
Make sure your Pi is up-to-date and then restart the Pi:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade sudo apt-get shutdown -r now
Now download a script to automatically work out the correct driver version:wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi
Extract the downloaded file:tar -xzf install-wifi.tar.gz
Run the script to make sure there is a suitable version of the driver:./install-wifi -c
This will then tell you (a) if there is a driver and (b) its name. In my example the driver was ‘8812au’ so then I download and install the driver using:./install-wifi 8812au
Finally reboot the Pi and hey presto, you’re done!sudo shutdown -r now