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