OpenCV incompatibility issues - python

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

Related

Error: feature:|#/linux-64::__glibc==2.27=0 when installing with conda?

I set up a conda env like this:
conda create --name py36 -c conda-forge python=3.6
And then when I went to install OpenTargets, I get:
(py36) env_work:~$ conda install -c bioconda opentargets
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 versionsThe following specifications were found to be incompatible with your system:
- feature:/linux-64::__glibc==2.27=0
- feature:|#/linux-64::__glibc==2.27=0
Your installed version is: 2.27
Could anyone explain why this would be the case? I also tried with python 3.8, and I checked the documentation which says it should work for python > 3.5?

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)

Installing dask-ml throws "Solving Environment" error

I'm getting the following errors when trying to install dask-ml with conda. Any ideas how to fix this?
(env3) C:\>conda install -c conda-forge dask-ml
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
(env3) C:\>
The problem was that inadvertently installing pip upgraded python to version 3.9.1 from 3.8.5, reverting that solved the problem.

how to install pgmpy on anaconda 3 using the anaconda prompt

the following errors pop us while trying to install pgmpy
(base) C:\Users\pc> conda install -c ankurankan pgmpy
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 abor\
Examining pgmpy: 50%|███████████████████████████████████████████████████████████████████████████████ | 1/2 [00:00<00:00, 4.40it/s]-failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Try this, it worked for me.
pip install pgmpy

Categories