2

I want to work with a package using Jupyter notebook. First, I need to create a virtual environment, which I've done, and then install Gurobi and CPLEX there. Using these commands:

conda install -n virtualenvname ibmdecisionoptimization cplex for CPLEX and these for Gurobi: conda config --add channels http://conda.anaconda.org/gurobi conda install gurobi

I get error messages below and because they take so long, I always terminate them before they go further. I don't have this problem without creating virtual environment.

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed

Could you please guide me to solve this problem?

pppery
  • 3,731
  • 22
  • 33
  • 46
  • This sounds like your Anaconda environment is broken. Are you able to install any packages at all? I suggest to set up the environment from scratch after updating Anaconda itself. – mattmilten Jun 05 '20 at 08:53
  • Thanks for the input; Yes, I can install other packages. – keenbiolearner Jun 05 '20 at 09:51
  • Perhaps try: `conda install -n virtualenvname ibmdecisionoptimization::cplex gurobi::gurobi`. However, note that it is generally better practice to specify all required software at the creation of the env rather than doing *ad hoc* installs. – merv Jun 06 '20 at 04:43
  • Can you share the contents of the environment? – AMC Jun 10 '20 at 01:05

0 Answers0