I'm trying to install OpenCV with Anaconda prompt. I've tried the anaconda and conda-forge versions.
After using the article's mentioned command:-
conda install -c menpo opencv
I get the following messages:-
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.
Examining requests-oauthlib: 1%|▎ | 2/347[00:00<00:06, 53.66it/s]\
Examining py: 44%|████████████████████████████▊ | 154/347 [00:00<00:00, 977.99it/s]|
Examining locket: 83%|█████████████████████████████████████████████████▊ | 288/347 [00:00<00:00, 1078.27it/s]/
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package hdf5 conflicts for:
anaconda==2019.10 -> h5py==2.9.0=py36h5e291fa_0 -> hdf5[version='>=1.10.4,<1.10.5.0a0']
h5py -> hdf5[version='>=1.10.1,<1.10.2.0a0|>=1.10.2,<1.10.3.0a0|>=1.10.4,<1.10.5.0a0|>=1.8.18,<1.8.19.0a0|>=1.8.18,<1.9.0a0|>=1.8.20,<1.9.0a0']
hdf5
opencv -> hdf5[version='>=1.10.2,<1.10.3.0a0|>=1.8.18,<1.8.19.0a0|>=1.8.20,<1.9.0a0']
anaconda==2019.10 -> hdf5==1.10.4[build='h7ebc959_0|h530792d_0']
pytables -> hdf5[version='>=1.10.1,<1.10.2.0a0|>=1.10.2,<1.10.3.0a0|>=1.10.4,<1.10.5.0a0|>=1.8.18,<1.8.19.0a0|>=1.8.18,<1.9.0a0']
Error image
Can someone please help with this? I want to run opencv in spyder in Anaconda
conda 4.7.12
Python 3.7.4
OS: Win10 x64
It looks like hdf5 is conflicting with your instalation.
You should try to create a new virtual environement using conda, and from this venvironement remove hdf5 before installing openCV. You'll be safe this way.
You can do something like :
conda create --name test_env
conda activate test_env
conda remove hdf5
conda install -c conda-forge opencv
Related
I am a new Miniconda user that needs to use pyseer to perform a GWAS study in regards to a bioinformatic pipeline. After downloading 64-bit Miniconda on Windows 11, I first created a new environment (bioinformatics3) and added the necessary channels according to pyseer documentation:
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
I want to install pyseer and its dependencies using:
conda install pyseer
However, when I try running this, it always ends up looking something like:
(bioinformatics3) C:\Users\djian>conda install pyseer
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:
I have already tried running this a couple of times and using the commands here as well, but still no luck.
Why is this happening? Any insight/solutions would be amazing and please note that I am a new Conda user with virtually no background in Python/command line since I only am familiar with R.
My anaconda base(root) is using python3.9, I want a new version, so I installed a new virtual environment with python3.10. Then I use"conda install -c conda-forge python-binance" to get the python-binance, but get error like below.
conda install -c conda-forge python-binance
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
I have tried all the solutions that included in this link:https://exerror.com/solving-environment-failed-with-initial-frozen-solve-retrying-with-flexible-solve but all failed. So could anyone tell me what should I do to solve it?
I think this package only works for python 3.5, 3.6, 3.7 as stated in here.
So I would suggest you to downgrade your python version to be compatible with this library!
** Disclaimer: I am relatively new to data science and anaconda. I have basic competency in python however, I'm no expert (took an accelerated course on the path to obtaining an applied economics major if that helps illustrate where I'm at)**
Basic Info: MacOSx (Catalina v 10.15.4), Anaconda Navigator v 1.9.12, Spyder v.4.0.1
I am still unable to install selenium on anaconda even after trying all of the following commands in my terminal:
conda install -c conda-forge selenium
conda install -c conda-forge/label/gcc7 selenium
conda install -c conda-forge/label/cf201901 selenium
conda install -c conda-forge/label/cf202003 selenium
Each time I try, I get this message
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
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.
Found conflicts! Looking for incompatible packages. This can take several minutes.
Press CTRL-C to abort.
Examining conflict for notebook anaconda jupyter_client libsodium zeromq spyder pyzmq spyder-kernels: : 325it [45:34, 1.0
Examining conflict for notebook anaconda jupyter_client libsodium zeromq spyder pyzmq spyder-kernels: : 326it [45:34, 1.4
Examining conflict for anaconda lxml: : 326it [45:37, 1.49s/it] failed |
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
...
...
After this it lists a BUNCH of stuff that all look similar to this (this is just the first line of MANY):
anaconda-navigator -> python[version='2.7.*|3.5.*|3.6.*|3.4.*']
...
...
Things I have tried to resolve this problem:
conda update conda because I heard this might have something to do with having a python v that wasn't compatible with anaconda navigator. Update was successful but came back with the same message above
pip install -U selenium and python setup.py install
Please help me be able to use selenium in spyder!!! Thank you so much!
I am trying to install ggplot with conda-forge. But it is showing some certain error. Details error message is given below.
(base) C:\Users\ASUS>conda install -c conda-forge ggplot=0.11.5
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:
- ggplot=0.11.5 -> python[version='2.7.*|3.5.*|3.6.*|3.4.*']
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.
The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
- feature:|#/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0
Please help me with any solution.
I have found an alternative of ggplot, which contains all ggplot function. It's plotnine.
To install plotnine
# Using pip
$ pip install plotnine # 1. should be sufficient for most
$ pip install 'plotnine[all]' # 2. includes extra/optional packages
# Or using conda
$ conda install -c conda-forge plotnine
For usage guideline please visit https://plotnine.readthedocs.io/en/stable/index.html
The development of yhat's ggplot python port stopped in 2016. It seems that it is only compatible with pandas<0.22 which predates python 3.7 and is thus not available for python-3.7 on conda-forge.
The easiest way to use it is to install it into an environment with a python3.6 interpreter.
I'm trying to understand why my conda installation of pysoundfile via the following command fails
conda install -n condaenv -c conda-forge pysoundfile
The error message seems to complain about a missing comparability between the required python version and my installed version. But as far as I understand, the version I have in my conda environment is listed and should be supported, right? This is the error 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.|
Examining python=3.7: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 16.26it/s]\failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pysoundfile=0.10.2 -> python[version='2.7.*|3.5.*|3.6.*|3.6.9|>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|3.4.*',build=0_73_pypy]
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.
The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0
I assume the warning about my cuda driver is a secondary issue that doesn't have anything to do with the pysoundfile installation. Does sombody know what's going on here and how I might bypass the issue?
I was able to replicate this error with conda and python 3.7.
pip install pysoundfile works just fine if you want to install soundfile.