As good as the HTC One M7 is, the device is now a few years old now and since HTC will no longer be supporting it, a lot of people are considering an upgrade but if you still plan to hold on to it but would also like to try out what the new Android 7.1 Nougat is like, there is now a solution. The OS 14.1 for HTC One M7.
Not only will the OS help improve the performance of the device but it is customization so users can play around to customize it to their liking. If you are looking to update to the Lineage OS, here is how you can do so.
You will need to download the Lineage 14.1 OS here as well as the Gapps for Lineage OS 14.1. Once that is done, transfer the files to your One M7. Boot the device and enter TWRP recovery. Next, select Wipe and Swipe to Factory Reset.
Press Back to enter Main Menu and Install the Lineage OS.zip file by selecting the file and Swipe to Confirm Flash. One flashed, Swipe to Wipe and flash the Gapps. Lastly, reboot the One M7 and you are done.