Seems you can just install with the offline installer of .NET framework matching the OS version.
See the links in comment for how to install SharePoint 2013 after .NET 4.6+ is installed.
Note that if your SharePoint system have 3rd party components (mostly those Workflow software) you'll want to check if they support newer .NET version first.