Check if the module is in transit. To do this, in the Python shell:
>>> import sys >>> print sys.path
If it was installed correctly, you should see the mock directory in one of the printed directories.
If you did not find the mock directory, I assume pip does not install the module in the virtualenv package directory.
source share