diff --git a/install b/install
index 322018fed6d4267fa238bc0598425eb40562fe2e..4f4f95398c07a0de23d404a4b81ac7b85a315a43 100755
--- a/install
+++ b/install
@@ -8,7 +8,6 @@ source script/remove_old
 source script/set_mpi
 source script/conf_PETSC
 source script/update_openfpm
-source script/solve_python
 
 ### switch to the branch
 
@@ -222,11 +221,11 @@ if [ ! -d "$i_dir/PETSC" -o ! -d "$i_dir/EIGEN" ]; then
     if [ $? -ne 0 ]; then
       ### We have to install python
       echo "OpenFPM require python but it's not installed, searching a solution... "
-      solve_python
+      ./script/solve_python $platform
       command -v python
       if [ $? -ne 0 ]; then
 	echo -e "python\033[91;5;1m FAILED \033[0m"
-        return
+        exit 1
       fi
     fi
 fi