UnicodeDecodeError when i try to run Gurobipy
Awaiting user inputAfter installing the Gurobi with gurobipy package, I tried to run "gurobi" in the command window and it raises an error which is shown as follows (No python program involved yet):
Traceback (most recent call last):
File "C:\gurobi1000\win64\bin\\..\lib\gurobi.py", line 10, in <module>
_m = Model()
File "src\gurobipy\model.pxi", line 69, in gurobipy.Model.__init__
File "src\gurobipy\gurobi.pxi", line 28, in gurobipy.gurobi._getdefaultenv
File "src\gurobipy\env.pxi", line 62, in gurobipy.Env.__init__
File "src\gurobipy\exception.pxi", line 20, in gurobipy.GurobiError.__init__
File "src\gurobipy\extern.pxi", line 19, in gurobipy.__bytestostring
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb8 in position 39: invalid start byte
I checked the path of gurobi and conda and all characters are correct (in english letter).
-
Could you try copy-pasting your code into a plain text editor such as the Windows notepad, saving it, and executing the code then? If this works, then your editor somehow added some non-standard characters.
If this does not help, could you please provide a minimal working example reproducing the issue?
0
Please sign in to leave a comment.
Comments
1 comment