diff --git a/bin/build_detector.sh b/bin/build_detector.sh
index 8d1fb449615d529723784424e9dddcf045d1d9fa..d952183017e56fc5a08d5a10130e3f715378ab5d 100755
--- a/bin/build_detector.sh
+++ b/bin/build_detector.sh
@@ -43,6 +43,9 @@ fi
 echo "git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git"
 git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://${DEPLOY_TOKEN}eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
 [[ "$?" == "0" ]]  ||  exit 1
+if [ -f "${JUGGLER_DETECTOR}/requirements.txt" ] ; then
+  python -m pip install -r ${JUGGLER_DETECTOR}/requirements.txt
+fi
 rm -rf "${JUGGLER_DETECTOR}/.git"
 
 ## We need an up-to-date copy of the detector