Not an expert here, but...it appears that "upip" may have been replaced by "mip."
What works for me in the thonny IDE:
import mip
What does not work for me in the IDE:
import upip