Local and nonlocal singular Liouville equations in Euclidean spaces