Apple don’t want you to do this, but it’s necessary for some apps.
- Go to System Preferences then ‘Security and Privacy’.
- Click on the lock in ht bottom left corner.
- Click this second option
You may need to go in and allow some apps individually from this same control panel when you are trying to install them.