Originally posted by: Eumpfenbach
I have searched numerous python path websites on google and am stuck. I run Ubuntu 10.04 and ILOG 12.2.
I start up the prompt:
ed@ed-laptop:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
http://GCC 4.4.3 on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
So the python path is set right, right?
So if I open a new prompt and type the following, I get an error. I have mipex1.py in the ILOG path above (and /usr/lib/python2.6 just to be safe).
ed@ed-laptop:~$ python mipex1.py
python: can't open file 'mipex1.py':
Errno 2 No such file or directory
ed@ed-laptop:~$
If I try and start the file this way, I also get an error:
ed@ed-laptop:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
http://GCC 4.4.3 on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> mipex1.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'mipex1' is not defined
Any help would be appreciated. I'm just starting with python and am not sure what I am doing wrong.
Ed
#CPLEXOptimizers#DecisionOptimization