Go to the
Code::Blocks website
and download the appropriate version for your operating system.
Install Code::Blocks following the installation instructions