Note: See the EDIT below for one possible solution.
I apologize if this is not appropriate but I don't really have anywhere else to turn.
I was hoping that someone would be able to post how they would install CPLEX with the Python API. I have tried calling IBM, looking at documentation, YouTube videos, and trying to find examples. Unfortunately, I have had no luck and am unable to install it properly.
If anybody has a simple guide, tutorial, steps, whatever, i'm sure that this would be super helpful to many people down the road.
So far I have followed the instructions here and I have installed the CPLEX Optimizer Studio, but when I run "python setup.py install" I get the following: I then tried to set the PYTHONPATH, and that had no impact on my results. My objective is to run the code at the bottom of the link provided above which suggests that the installation would be correct. However, I am unable to run the code completely because I can only get part way until it crashes:
EDIT: The entire issue here is that I was running Python 3.7 instead of Python 3.6. Python 3.7 is not available in 64-bit (only 32-bit), but this was overlooked entirely when I first installed Python to begin learning the language. For anybody who finds this and is interested in getting CPLEX up and running, these are the steps I have followed:
Ensure that you are running Python 3.6.x 64-bit. CPLEX will not work on a 32-bit and Python 3.7 is not set up for 64-bit as of yet.
Run pip install cplex
Run pip install docplex
Figure out how to set your "Environment Variable" and create it as PYTHONPATH and then specify the file path for the environment variable in a similar fashion like this: C:\Program Files\IBM\ILOG\CPLEX_Studio_Community129\cplex\python\3.6\x64_win64
The only downside to this is that each time you want to run CPLEX you need to specify this environment variable it seems, and I am not sure if this will end up causing headaches down the road or not. Unfortunately I was unable to successfully run the script.py, but I found this to work as well.