diff --git a/bin/steps/python b/bin/steps/python
index 22285aa906aa0467e3a610e01d1fbefc60e1fbd3..f1e872dbf3569403aa547f70e8b033656a26cc25 100755
--- a/bin/steps/python
+++ b/bin/steps/python
@@ -64,8 +64,8 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_UPDATE* ]]; then
   puts-step "Installing pip"
 
   # Remove old installations.
-  rm -fr /app/.heroku/python/lib/python2.7/site-packages/pip-*
-  rm -fr /app/.heroku/python/lib/python2.7/site-packages/setuptools-*
+  rm -fr /app/.heroku/python/lib/python*/site-packages/pip-*
+  rm -fr /app/.heroku/python/lib/python*/site-packages/setuptools-*
 
   /app/.heroku/python/bin/python "$ROOT_DIR/vendor/get-pip.py" &> /dev/null