Hi@akhtar,
If you are trying to install with pip command, then you should have a visual studio in your system. Otherwise, it will give the above error. You can also install the line profiler module with Anaconda using the below command.
$ conda install line_profiler