ImportError: No module named pymongo

I am currently at m040 chapter1 lab ‘Error Handling’

I try to run python loader.py and got this error message ‘ImportError: No module named pymongo’

I already tried to install pymongo in the VM and inside the .py file using ‘pip install pymongo’ and ‘sudo pip install pymongo’

Do I have to update the python version on my vm? the version installed is 2.7.6

I actually made a mistake! I didn’t write python3, just python