diff --git a/travis_custom/custom_before_install_osx.sh b/travis_custom/custom_before_install_osx.sh
index b2d8bb1153c3c8a083f8aad1548a883c0c225df0..40dbd837a763a7dfd2baaf0e618fd629178b652e 100755
--- a/travis_custom/custom_before_install_osx.sh
+++ b/travis_custom/custom_before_install_osx.sh
@@ -4,8 +4,11 @@ brew update
 brew tap gepetto/homebrew-gepetto
 
 # install eigenpy
-brew install boost assimp eigen octomap eigenpy
 
-# set environment variables
-export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/openrobots/lib/pkgconfig"
-export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/openrobots/lib"
+brew install python@2
+brew install boost assimp eigen octomap 
+
+brew uninstall numpy
+pip uninstall numpy -y
+brew install eigenpy
+brew link --overwrite numpy@1.16