I am using windows 8.1, Anaconda3 (version 4.6.8) with python version 3.6.7
When I run my Magma script which calls a python script. I get the following error:
> TghtSets := Tight(A,theta);
Computing 0-1 vectors in a 25 dimensional subspace.
Traceback (most recent call last):
File "FindTightv2.py", line 23, in <module>
ImportError: No module named gurobipy
[5996] Failed to execute script FindTightv2
The associated line in the FindTightv2.py script is:
from gurobipy import *
When I call "from gurobipy import *" within my python shell, (which I navigate to via command prompt) I get no such error.
C:\Windows\System32>python
Python 3.6.7 (default, Feb 28 2019, 07:28:18) [MSC v.1900 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from gurobipy import *
>>>
The following is my path from my environment variables:
C:\gurobi810\win64\bin;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\gurobi810\win64\python37\lib\gurobipy
Note that these directories are correct. However, when I call %PATH%, I get the following error:
C:\Windows\System32>%PATH%
'C:\gurobi810\win64\bin' is not recognized as an internal or external command,
operable program or batch file.
If I modify the path to:
C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts
I get the following error:
C:\Windows\System32>%PATH%
'C:\ProgramData\Anaconda3' is not recognized as an internal or external command,
operable program or batch file.