* Engine Mounts: The engine mount locations might be slightly different. You'll likely need to use engine mounts from the 2001 truck, or possibly fabricate custom mounts.
* Wiring Harness: The wiring harnesses are different. You'll need to adapt the 2001 harness to the 1997 system, which can be a complex undertaking. A standalone engine harness from a 2001 might be easier.
* Transmission: Make sure the transmission from the 2001 is compatible with the 1997's transmission mount and bellhousing. If they don't match, you'll have more significant modifications.
* Exhaust System: The exhaust system will likely need modification or replacement.
* Accessory Components: The placement of power steering pump, alternator, and AC compressor might differ slightly, requiring adjustments or replacements.
In short, while the engines are generally the same family, it's not a simple bolt-in job. It'll require mechanical skill and potentially some fabrication. Consult a mechanic experienced in engine swaps before attempting this. It's a project that can easily become far more complex and expensive than initially anticipated.