When running my project it shows "ModuleNotFound: No module name 'appium'

I am trying to use record any playback in an iOS app. I am getting this error while running my script.
"ModuleNotFound: No module name 'appium’
Can anyone please tell me what is the reason of this?
Same thing i have done for Android in Windows machine but it works and successfully start the session.
Thanks in advance and i am quite new in Appium record and playback.