Let \(S^1 \subset \mathbb{C}\) act on \(S^{2n+1} \subset \mathbb{C}^{n+1}\) by scalar multiplication. The quotient map
\begin{equation*}
p \colon S^{2n+1} \to S^{2n+1}/S^1 \cong \mathbb{C}P^n, \qquad z \mapsto [z_0 : \cdots : z_n],
\end{equation*}
is a fibre bundle with fibre \(S^1\text{.}\) The construction also applies to \(S^\infty = \bigcup_n S^{2n+1}\text{,}\) giving a fibre bundle
\begin{equation*}
S^1 \to S^\infty \to \mathbb{C}P^\infty.
\end{equation*}
Since \(S^\infty\) is contractible and \(S^1\) is connected, the long exact sequence gives, for \(i\geq1\text{,}\)
\begin{equation*}
\pi_i(\mathbb{C}P^\infty) \cong \pi_{i-1}(S^1) =
\begin{cases} \mathbb{Z} & \text{if } i = 2, \\ 0 & \text{otherwise.} \end{cases}
\end{equation*}
