diff --git a/.ci/macos/Brewfile b/.ci/macos/Brewfile
index 84036fede86e55ff5eedc89fc51245ba785844b1..171cc0a4f7f9ae8e33ad9e324afe4ca634e12cc6 100644
--- a/.ci/macos/Brewfile
+++ b/.ci/macos/Brewfile
@@ -10,3 +10,4 @@ brew "openssl"
 brew "nlohmann_json"
 brew "gstreamer"
 brew "qtkeychain"
+brew "pipx"
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 83dc2abc8a16bfb77e9107952dd62c031d7af9c0..7e7a34dfd2d3d10447d76bfa8ef7b0da02e19cb9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -268,7 +268,7 @@ build-macos-as:
     - brew update-reset
     - unset HOMEBREW_NO_AUTO_UPDATE
     - brew bundle --file .ci/macos/Brewfile
-    - pip3 install aqtinstall
+    - pipx install aqtinstall
     - mkdir $HOME/Qt
     - aqt install-qt --outputdir $HOME/qt mac desktop 6.6 clang_64 -m qtlocation qtimageformats qtmultimedia qtpositioning qtshadertools
   script:
@@ -279,7 +279,7 @@ build-macos-as:
 .codesign-macos: &codesign_macos
   stage: sign
   before_script:
-    - pip3 install dmgbuild
+    - pipx install dmgbuild
   tags: [macos]
   script:
     - export QTPATH=(/Users/jdonof/Qt/6.*/macos/bin)