As a popular security tool a lot of Linux distribution includes it as package. Which means it can be downloaded from distribution specific package manager. Here are some of them Fedora/RedHat/Centos
$ yum install nmap -y
$ apt-get install nmap -y
$ yast install nmap -y
Windows Windows have pre-build binaries and can be downloaded from here Install From Source...