Which simulator are you using?
If you are using iverilog, you may refer to my blog posts: http://qren.logdown.com/posts/2017/06/01/1905464
Besides Python, you have to install iverilog, GCC, and GNU make, and follow the instructions given.
I didn't try it on Windows. But I guess the steps are almost the same.