Proof (homotopy equivalence descends to isomorphism between fundamental groups)
Let $g: Y\to X$ be a homotopy inverse to $f$, i.e. $g\circ f \simeq \id_X$ and $f\circ g \simeq \id_Y$. To be clear with basepoints, let $y_0 = f(x_0), x_1 = g(y_0), y_1 = f(x_1)$, and write $$ \begin{align*} f_\ast : π_1(X, x_0) &\to π_1(Y, y_0), \\ g_\ast : π_1(Y, y_0) &\to π_1(X, x_1), \\ f_\ast' : π_1(X, x_1) &\to π_1(Y, y_1). \end{align*} $$
We obtain a path $u: x_0 \rightsquigarrow x_1$ from a homotopy from $g\circ f$ to $\id_X$ so that $$ \begin{align*} (g\circ f)_\ast = g_\ast \circ f_\ast = u_\#, \end{align*} $$ which is an isomorphism. Thus $f_\ast$ is injective and $g_\ast$ is surjective.
Similarly there is a path $u' : y_0 \rightsquigarrow y_1$ using a homotopy from $f\circ g$ to $\id_Y$ so that $$ \begin{align*} (f\circ g)_\ast = f_\ast' \circ g_\ast = u'_\#, \end{align*} $$ which is an isomorphism, so $g_\ast$ is surjective.
Hence $g_\ast$ is an isomorphism, and thus $f_\ast = (g_\ast)\inv \circ u_\#$ is also an isomorphism.