diff --git a/tools/pylib/_boutcore_build/build-wheels.sh b/tools/pylib/_boutcore_build/build-wheels.sh
index 7a1c76336ba28642add0ebd8b15dcf1ce365625c..1e08b22bbe63ca84b22200f665fdedd33a409f2d 100644
--- a/tools/pylib/_boutcore_build/build-wheels.sh
+++ b/tools/pylib/_boutcore_build/build-wheels.sh
@@ -51,6 +51,6 @@ done
 mkdir -p wheelhouse
 rm -f wheelhouse/*whl
 cp /io/wheelhouse/*whl wheelhouse/
-$PYBIN/pip install twine
+$PYBIN/pip install twine --upgrade
 ls -l $PYBIN
 $PYBIN/python -m twine upload --repository testpypi wheelhouse/*.whl dist/*.tar*