A Greenock street is to close for nearly two months while work takes place on a railway bridge.