Isn't the projective plane $\mathbb RP^2$ such an example? It has $\pi_1 = \mathbb Z/2$ and $H_i = 0$ for all $i> 0$.