简体   繁体   中英

opencv conflict when trying to update all python packages using conda

I have not used python for a while but I am going to heavily use it again very soon, so I decided to update all packages and typed

conda update -all

(I did all the installations using anaconda ) I then get:

Fetching package metadata: ..
Warning: No packages found in current osx-64 channels matching: pymc >=2.3.3, skipping
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:

WARNING: This could take a while. Type Ctrl-C to exit.
|################################################################| 100%

Hint: opencv >=2.4.8 has a conflict with the remaining packages

From what I read in internet, this hint for opencv comes from the fact that python 3.x does not support opencv (?). However, I am on Python 2.7.8 . I am on a mac 10.9.5 and my conda version

conda info
Current conda install:

         platform : osx-64
    conda version : 3.7.3
  conda-build version : 1.3.5
   python version : 2.7.8.final.0
 requests version : 2.4.3
 root environment : //anaconda  (writable)
  default environment : //anaconda
 envs directories : //anaconda/envs
    package cache : //anaconda/pkgs
     channel URLs : http://repo.continuum.io/pkgs/free/osx-64/
                    http://repo.continuum.io/pkgs/pro/osx-64/
      config file : None
is foreign system : False

So far all packages I have tried work and opencv seems to work. However, I would like to know what should I do to successfully update my installed packages with conda .

Thanks

That error message doesn't always mean that. It only means that if python 3* is mentioned in the error output.

In your case, some package you have installed depends on some earlier version of opencv . If you don't care what version of opencv you have installed, run

conda remove opencv
conda update --all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM