Let $F$ be an algebraically closed field and $X$ be a curve obtained by removing at least two points on the projective line $\mathbb{P}^1_F$, i.e., $\mathbb{P}^1_F-X$ is a reduced separated divisor on $\mathbb{P}^1_F$ of degree $\geq 2$.
We know that the Picard group of $\mathbb{P}^1_F$ is $\mathbb{Z}$. How does one deduce that the Picard group of $X$ is $0$?
In this case we can view $X$ as $\mathbb{A}^1_F-\{p_1,...,p_r\}$, where $r \geq 1$, since the projective line minus a point is the affine line as seen in Is the projective line minus one point always isomorphic to the affine space?. Since $\mathbb{A}^1_F = \mathrm{Spec}\,F[x]$, we know that $\mathrm{Pic}(\mathbb{A}_F^1) = 0$. Does the removal of points have any relation to the localization of the UFD $F[x]$?