If the iLife version from your earlier drive was not re-installed, or if you bought
the iPhoto from the Mac App Store, you could re-install it. From the latter, you
could go to the app store and see where previous purchases are located, to
download another copy of the one you bought; if you did.
If you had iLife on DVD from another era, you could use that to reinstall, if you
had an optical drive to access optical disc media.
Since you don't say how your earlier iPhoto or iLife was acquired, that detail
is important to how you may restore it. Or buy a new version from app store
if you don't have any other option; if you got it from the app store check there
to see about getting a free copy of the one you bought. Then check for update.
How was the data transferred from the old Mac? Do you still have that Mac?
Could be only one copy per media license, for older version, was allowed.
Good luck & happy computing! 🙂