ImportError: No module named twitter on shell file

So i installed twitter with
easy_install twitter

import twitter

When I run my python file directly on the terminal it works fine


However, when I put the above into a shell file


I run this file using


I get an error

ImportError: No module named 'twitter'

Why does it not recognise the imported module post installation when I try it through the shell script?

Source: shell

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.