diff --git a/travis_custom/custom_before_install_osx.sh b/travis_custom/custom_before_install_osx.sh
index 0ee7c787bb68f695b252ccd4552813042351cdee..1b33ed2e550534c2a499507b2271a9f2d54dea02 100755
--- a/travis_custom/custom_before_install_osx.sh
+++ b/travis_custom/custom_before_install_osx.sh
@@ -9,5 +9,5 @@ brew install boost assimp eigen octomap
 
 brew uninstall numpy
 pip uninstall numpy -y
-brew install eigenpy
+brew install eigenpy@2
 brew link --overwrite numpy@1.16