ImportError: No module named config error occurs due to the naming conflict. If you named any file as pyramid.py, then you are most likely to get this error when you try out the pyramid web framework examples. Simply use a different name for the files.