In macOS Sierra (10.12.x) and later versions, the "Allow applications downloaded from anywhere" option is hidden by default in Apple's Gatekeeper. You can see this by going to the Security & Privacy...