opt = SolverFactory('cplex', executable="/Applications/CPLEX_Studio_Community129/cplex/bin/x86-64_osx/cplex")
If using the executable option (as above), it works. If not, we get the following error:
ApplicationError: No executable found for solver 'cplex'