Prevent photoanalysisd from spinning up fans
Go to AppleID > iCloud and disable Photos. 
Go run Photos app and verify there are no libraries, delete all images or delete the library so when you relaunch Photos is asks to create a library. 
Repeat these steps for every user on your Mac in Accounts
Restart the Mac. 


At that point you might need look into logs to see what’s triggering the daemon to do work or run a sysdiagnose on the process. Also, Photos can have many libraries, so you might need to switch libraries to locate the system library or other ones. Photo analysis can run on any library - not just the one you expect when you launch the app.