ImportError: No module named direct.directbase.DirectStart

Yes, perhaps IDLE is using a different Python version. If it’s a compatible version, you might be able to get it to recognise the Panda3D modules by placing a .pth file in the right location, but I wouldn’t count on it.