Try add the -U flag to pip:
-U
pip
python -m pip install -U --pre --extra-index-url https://test.pypi.org/simple/ pygmt