I am trying to run python scripts on a HPC machine (RedHatEntrepriseServer). CPLEX module is already installed by adminastrators but I still have this error in importing cplex module in python.
ImportError: No module named 'cplex'
Thanks to skr and danche comments, here is how I solved the problem:
I looked for cplex location by using this command:
find / -iname "cplex"
Then I updated the
PYTHONPATH variable with this location:
I updated my
.bashrc file with last command so each time I log in it is set automatically.