Python ImportError: No Module named ...

I tried to install pymongo today for python and mongo-db, but after running

>>>import pymongo

I received the following error

ImportError: No Module named pymongo

I then ran the following:

import sys

sys.path

which revelaed to me that I had a previous installation of python that was interfering with me. I checked my PATH, and sure enough, there was an entry to a /python directory before the latest addition I made to the PATH with my new /python directory. I removed the previous entry and it worked.


Comments

Add Comment

Name

Email

Comment

Are you human? + one = 3