The one dimensional Maxwell distribution for the $i-$component of the velocity vector is
$$f_{1D }(v_i) = \left(\frac{m}{2 \pi k T}\right)^{1/2} \exp\left(-\frac{m v_i^2}{2kT} \right)$$
Let's drop the $i$ and $1D$ subscripts for simplicity. You are looking for the average of the absolute value of $v$, $|v|$. To find $\langle |v| \rangle $, we have to perform the integration
$$\int_{-\infty}^{\infty} |v| \ f(v) \ d v$$
Now, since $f(v)$ depends only on the square of $v$ and we are in one dimension, $f(|v|) d|v| = f(v) d v$ and we have
$$\left(\frac{m}{2 \pi k T}\right)^{1/2} \int_{-\infty}^{\infty} |v| \exp\left(-\frac{m |v|^2}{2kT} \right) \ d |v|$$
Since the absolute value is present, this is equal to (let's change notation for clarity, $|v|=u$)
$$ 2 \left(\frac{m}{2 \pi k T}\right)^{1/2} \int_{0}^{\infty} u \exp\left(-\frac{m u^2}{2kT} \right) \ d u$$
The integral can be solved easily integrating by parts, and yields $\frac{kT}{m}$, so that:
$$ \left(\frac{m}{2 \pi k T}\right)^{1/2} \left(\frac{2 kT}{m}\right)$$
Simplifying, we obtain:
$$\langle |v| \rangle = \left( \frac{2kT}{\pi m} \right)^{1/2}$$
Q.E.D. :-)
P.S. Notice that the average of $v_i$ (with no absolute value) would be $0$ for symmetry. For clarity:
$$\langle v \rangle = \int_{-\infty}^{\infty} v \ f(v) \ d v = 0$$
$$\sqrt{\langle v \rangle^2} = v_{rms} = \sqrt{\int_{-\infty}^{\infty} v^2 \ f(v) \ d v }$$
$$\langle {|v|} \rangle = \int_{-\infty}^{\infty} |v| \ f(v) \ d v $$