Disabling Gatekeeper
From the Apple menu, open the "System Preferences" application.
Click on Security & Privacy > General tab.
If the lock in the left-hand corner is locked, click on it, then enter your Mac's username and password. This may not be required.
Click "Anywhere" under "Allow applications downloaded from:".
If you followed Step 3, please click the lock in the left-hand corner to return it to its locked state.
Close "System Preferences".
Since MacOS Sierra the “Anywhere” option is not visible per default in the System preferences. To set Gatekeeper to “Anywhere” you‘ll need to do it via terminal:
$ sudo spctl --master-disable
Then the “Anywhere” option is visible in the System Preferences UI. But only while active.
Sounds like a security disaster for non-technical users. It is much better to trust a specific app from now on than to trust the entire internet from now on.