The widget is optimized to be run from a site served by a web server – the inclusion code assumes that the containing page is running on a server, rather than a local filesystem.
While developing, you can change the “://platform.twitter.com/widgets.js” part to “https://platform.twitter.com/widgets.js” and it will load in an alternative environment.