Originally posted by: WJvanHoeve
Yes, that folder exists and I added it to the PYTHONPATH:
>>> import os
>>> print(os.environ['PYTHONPATH'])
C:\Program Files\IBM\ILOG\CPLEX_Studio128\cplex\python\3.6\x64_win64
>>>
In Jupyter, now at least CPLEX is being recognized, but I received the message "Exception: CPLEX 12.8.0.0 is not compatible with this version of Python."
In the command prompt, however, still get the error message "CPLEX DLL not found". It also gives me the warning that "docplex is not officially supported on 32 bits, which made me realize that I was running a 32-bit version of Python :(.
So, I installed the 64-bit version of Python 3.6.8, and re-executed all installation steps, including the setup.py -- this time from the proper path.
Unfortunately, now I get a different error message: " ModuleNotFoundError: No module named 'docplex' ", see:
C:\Program Files\IBM\ILOG\CPLEX_Studio128\python\examples\mp\modeling>python diet.py
Traceback (most recent call last):
File "diet.py", line 13, in <module>
from docplex.mp.model import Model
ModuleNotFoundError: No module named 'docplex'
#CPLEXOptimizers#DecisionOptimization