Another way to do this is to make use of inclusion maps. Consider the following maps:
$$\iota:\mathbb{U}^1\hookrightarrow\mathbb{R}^2$$
$$q:\mathbb{R}^2\to\mathbb{P}^1$$
Where $\mathbb{U}^1$ is the upper semicircle of $\mathbb{S}^1$ and $q$ is the quotient map defined by the relation $x\sim\lambda x$. Note that the map $q\circ\iota$ is a continuous surjection. Because $\mathbb{U}^1$ is compact and $\mathbb{P}^1$ Hausdorff, by the closed map lemma, $q\circ\iota$ is a quotient map. However, note that the quotient map $q’:\mathbb{U}^1\to\mathbb{U}^1/\sim$ induced by the relation $(1,0)\sim (-1,0)$ makes the same assignments as $q\circ\iota$, so $\mathbb{U}^1/\sim\hspace{2mm}\approx\mathbb{P}^1$. But this identification of the “endpoints” of the upper semicircle is identical to attaching the endpoints of the unit interval together, which yields the quotient space $\mathbb{S}^1$. Thus, $\mathbb{P}^1\approx\mathbb{S}^1$.
Alternatively, if you know $\mathbb{P}^1$ is a compact 1-manifold, by the classification theorem it must be homeomorphic to $\mathbb{S}^1$.