Originally posted by: SystemAdmin
Provided you installed 12.3 and 12.4 into different locations it should be sufficient to set the PYTHONPATH environment appropriately.
For example, I have installed 12.3 and 12.4 into $HOME/COS-12.3 and $HOME/COS-12.4. On my Linux box I can simply do (using bash)
PYTHONPATH=$PYTHONPATH:$HOME/COS-12.3/cplex/python/x86-64_sles10_4.1/ ./script.py
PYTHONPATH=$PYTHONPATH:$HOME/COS-12.4/cplex/python/x86-64_sles10_4.1/ ./script.py
to run script.py with either 12.3 or 12.4. Here script.py is just one of the example files distributed with CPLEX.
#CPLEXOptimizers#DecisionOptimization