Reputation: 79
I'm trying to install the python module 'Pycpx' but I'm getting an error that it can't find an environment variable
Exception: CPLEX concert include directory not found: please set environment variable CPLEX_PATH to point to the base of the CPlex/Concert installation. Attempting to find files: ilconcert/iloexpression.h, ilconcert/iloalg.h, ilconcert/iloenv.h, ilconcert/ilosolution.h.
I create a file called .bash_profile in my home directory and I put this line in it which points to the folder where these header files are located.
CPLEX_PATH = /home/joe/concert/include/ilconcert
Is this the correct way to add environment variables as I am still getting the error?
I get this error whether I install with easy_install pycpx
or I get the source tarball from here tarball and run python setup.py install
.
Many thanks
Upvotes: 0
Views: 508
Reputation: 851
The correct way of doing it is as follows:
export CPLEX_PATH=/home/joe/concert/include/ilconcert
Upvotes: 3
Reputation: 55469
No, that's not right. You can't have those spaces around the =
sign, and you should export
the variable, like this:
export CPLEX_PATH=/home/joe/concert/include/ilconcert
Upvotes: 1