Note that in the upcoming version of Transformers, the error message will tell you this explicitly:
OSError: Helsinki-NLP/opus-mt-en-fr does not appear to have a file named tf_model.h5 but there is a file for PyTorch weights. Use `from_pt=True` to load this model from those weights.