code fails

i have no idea why but evrey time i try to code with the bge this error keeps showing up
saying that there is no module named bge when i type in the code import bge