The command you're using has a syntax error. It should be
pip install --upgrade numpy==2.1.2
Notice the == instead of =. This might fix it.
==
=