"no module name 'gurobipy'" in newly created anaconda environment
AnsweredI've downloaded the latest anaconda, where there is a Spyder 3.3.6 in the basic environment; and then I created a new environment to install the spyder 4.0.0.
When I use the two different versions of Spyder, only the 3.3.6 can launch Gurobi. In 4.0.0, "no module name 'gurobipy'" is displayed.
Does this mean that if I want to use Spyder to run Gurobi, only the Spyder version in the basic environment is available?
-
Have you also installed gurobi in the new environment where you installed Spyder 4.0.0?
0 -
Hi,
Because Gurobi is installed through Anaconda Prompt, and there isn't any Prompt in each environment, I cannot install Gurobi for a particular environment.
There is only one Anaconda Prompt start menu, and it should be connected with the basic environmrnt.
If there is any method to install Gurobi for an environment, please tell me.
0 -
Either you change the active environment in the Anaconda prompt, using activate:
Or you start an Anaconda Terminal for a selected environment via the Navigator:
You then have to install Gurobi again in this environment, just like Silke mentioned.
Cheers,
Matthias0 -
Thank you very much. I've solved this probelm through this.
0
Please sign in to leave a comment.
Comments
4 comments