Anaconda / Solving environment: failed with initial frozen solve. Retrying with flexible solve - python

I tried to install a package for anaconda and this message showed up:
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.
After that, it searched for conflicts which i cancelled after several hours. The recommended fix is to downgrade python with conda install python=3.7.5 for example however the same problem occurs doing that.
I tried to reinstall anaconda but the same message shows up when I try to install anything.
I am quite new to all of this and I am out of ideas what I can do. Any suggestions what I can do?
Thanks

The reply is 3 months late and I don't have any information about what you're trying to install but I ran into the same errors (I'm also first time conda user). And the easiest workaround for me was to create a new environment. And remember to install everything you need with one command as it can get messy with the dependency tree if you install packages one by one.
e.g. I ran
conda create -n pacbio pbmm2 whatshap

Related

My computer refuses to install OpenCV in Anaconda

After re-installing Anaconda 4 times in a row, and trying every possible trick in the book, I cannot seem to get OpenCV in my Anaconda apps. I want to use cv2 in Spyder (version 5.2.2), but countless tries have not resulted in anything of use.
DISCLAIMER: I am quite the noob when it comes to data environments, paths and whatnot, so be nice :)
INFO ABOUT THE PROBLEM:
I have now factory reset the computer, only downloaded and installed Anaconda through the official website. I then tried to type in to the Anaconda prompt:
conda install -c conda-forge opencv
When I run that, it currently produces:
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: /
I tried the same yesterday, with similar results. Running for a couple of hours, it started Examining conflicts with a bunch of packages.
At this point I can do no better than just ask here. I've tried so many different ways of trying to install openCV, and none of them have worked. I am desperate for any help.
I am using a GP66 Leopard computer with Windows 10, I don't know what more specs are needed.
In advance, thank you for looking in to this problem.
This did it: pip install opencv-python. Thank you to #CristophRackwitz for the suggestion!

Conda install error for multiple packages/Libraries I'm trying to install

(base) C:\Users\NameHere>conda install basemap
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: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
When I do the same with Conda install geopandas, fiona, or other similar groups then it makes a list of about 40 errors after the 'Press CTRL-C to abort' and says it can't resolve them, after running for an hour and a half. The first section is the same in both cases.
I seriously just need either geopandas or basemap (preferred) to work with a version of spyder that allows user inputs. I've tried uninstalling and reinstalling Anaconda and miniconda, both do the same thing.

After solving enviroment with conda, unable to install mayavi

I have ran into some issue in trying to install mayavi using conda. First it was stuck in the "solving enviroment" step and afterwards I obtained this
(base) usr#pc:~$ conda install -c anaconda mayavi
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: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- mayavi -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
I'm a little bit puzzled by this message, what does it mean "If python is on the left-most side of the chain"? I also modified my PATH and I am using python 3.8, shouldn't the installation work with the most recent version?
It looks like these packages on anaconda channel has not been updated in over a year, but the conda-forge channel has some newer builds, including some for Python 3.8. You could try
conda install -c anaconda -c conda-forge mayavi
(edited with correct conda-forge link)

OpenCV incompatibility issues

I'm trying to install the opencv package via conda install opencv and get the message
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: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- opencv -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']
Your python: python=3.8
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
How can I solve that issues so I can use the package?
All the best.
try:
conda update anaconda-navigator
conda update navigator-updater
conda install opencv-python

Install Pygame with Anaconda

I'm trying to install pygame on my Mac and get a ton of errors. I'm not 100% sure what this is telling me, except that it's telling me a lot.
Is it saying that Pygame is only compatible with Python 3.5? Because there was another ticket on StackOverflow (Install pygame with anaconda on mac) that said there was a problem with Python 3.5. I'd be surprised if it was incompatible with 3.7.
And if it's not incompatible, what's the problem? Everything I find seems to be quite Windows-centric with its problems and solutions.
% conda install -c cogsci pygame
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: -
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pygame -> python[version='2.7.*|3.5.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
You should use pip install pygame instead. The pygame package hosted by cogsci hasn't been updated in close to 4 years. That's the reason it still only supports python 2.7 and 3.5
On OS X with Anaconda I got pygame to work in a terminal with:
conda activate
pip install pygame

Categories