UnicodeDecodeError when i try to run Gurobipy
ユーザーの入力を待っています。After 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).
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
投稿コメントは受け付けていません。
コメント
2件のコメント