Prefect Cloud Login CLI Hanging

I am trying to get started with prefect 2 but I cannot seem to use the CLI to authenticate to the cloud. I created a python virtual environment, ran pip install -U prefect, and ran the command prefect cloud login. After selecting “login with web browser” the terminal just hangs. I have tried this with two different machines on two different prefect cloud accounts.