Finite CW complex with finite non-abelian fundamental group and higher homologies zero I want to build a finite CW complex such that $\pi_1$ is non-abelian and $H_i$ are zero for $i\geq 2.$
From Hatcher for a given group G, one can create an example of a 2-complex $X_G$ with $\pi_1(X_G)=G.$ I also checked from Mayer-Vietoris that if $G$ is cyclic such complex won't have any higher homology for $i\geq 2.$ I tried to take $G=S_3,$ the symmetric group of order 6 and from Mayer-Vietoris I get $H_2$ is $Z.$ I believe this was a correct calculation. Or is there a way to get the groups $G$, with $G$ non-abelian, such that we can get $\pi_1  =G$ and $H_i=0$ for $i\geq 2.$
Any reference or idea to create such an example? Or is there a way to claim such a finite complex can't exist?
 A: Theorem. Let $G$ be a group. There exists a finite 3-complex $X_G$ with $\pi_1 X_G = G$ and $H_i X_G = 0$ for $i > 1$ if, and only if, $G$ is finitely presentable and has second group homology $H_2(G) = 0$.
The more interesting question to me is whether this is possible for a finite 2-complex, and Jens Reinhold's answer gives us the first step there. This is possible for the group $2I$ mentioned in my comment above.

Lemma: Let $X$ be any CW complex. Then the cokernel of the Hurewicz map $\pi_2 X \to H_2 X$ is isomorphic to $H_2(\pi_1 X)$. (Proof: attach cells to make $X$ into a $K(\pi_1 X, 1)$; doing so kills off precisely $\pi_2 X$ inside of $H_2 X$.) This is exercise 23 in Hatcher section 4.2.
Proof of theorem. Pick any finite presentation $P$ of $G$ and construct the presentation complex $X_P$. This is a finite complex with $\pi_1 X_P = G$, and with $H_2(X_P)$ a free abelian group $\Bbb Z^k$ on a finite number of generators. Because the cokernel of $\pi_2(X_P) \to H_2(X_P)$ is precisely $H_2(\pi_1 X_P) = H_2(G) = 0$, it follows that $\pi_2(X_P) \to H_2(X_P) = \Bbb Z^k$ is surjective. Now choose $k$ maps $\rho_i: S^2 \to X_P$ so that these give a basis of the second homology group, and set $$X_G = X_P \cup_{i=1}^k D^3,$$ attaching these 3-cells along the $\rho_i$. The resulting complex has $H_i X_G = 0$ for $i > 1$ by a Mayer-Vietoris argument, while $\pi_1 X_G = \pi_1 X_P \cong G$ by the van Kampen theorem.
A: One way to construct a space with given $\pi_1$ and without higher homotopy/homology is with a covering $X \to X/G$ for some free action of $G$ on a contractible $X$ which will then be isomorphic to $\pi_1$. For example $X=\mathbb{R}^2$ is the universal covering space of the Klein bottle. The Klein bottle is a finite CW-complex, its fundamental group is the non-abelian group $G=\langle x,y \mid xyx^{-1} = y^{-1} \rangle$, and its homotopy and homology groups are trivial from degree two upwards.
A: Take any group $G$ (non-abelian if you like) that has a presentation $G = \langle g_1, \dots, g_s \ | \ r_1, \dots, r_{s} \rangle$ with the same number of generators and relations.
Form a CW-complex $X$ with one $0$-cell, $s$ 1-cells (representing the generators $g_i$) and $s$ $2$-cells that represent the relations. Then $\pi_1(X) = G$ and the cellular chain complex that computes $H_{\ast}(X)$ looks as follows: $$\mathbb Z^{s} \xrightarrow{\partial} \mathbb Z^s \xrightarrow{0} \mathbb Z$$ The differential $\partial$ can of course be calculated easily by abelianizing the relations $r_i$. If $G$ is finite, then $H_1(X;\mathbb Q) = G^{\text{ab}} \otimes \mathbb Q = 0$, hence the induced map $\partial \otimes \mathbb Q$ is surjective, hence injective, hence also $\partial$ itself is injective, hence $H_2(X;\mathbb Z) = 0$. Thus, $X$ is as desired.
It remains to undertstand which finite groups admit such a presentation. In line with mme's great comment above, $2I$ is such an example.
