您当前的位置: 首页 >  Python
  • 4浏览

    0关注

    483博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

anaconda安装opencv -> python[version=‘>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0‘]

高精度计算机视觉 发布时间:2022-03-10 12:30:34 ,浏览量:4

系统崩溃,机器重新装, 同样的配置和安装,突然报错,

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,=3.5,=3.6,=3.7, libgcc-ng[version='>=7.2.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.27

官方推荐的办法是

https://github.com/pytorch/vision/issues/3207

pip install opencv-contrib-python

发现如果用
conda install -c conda-forge opencv
会有一大堆不兼容。

顺便说一下,以前有说把python降到3.5版本的,我长时间用3.7和3.8,都没有问题,今天突然报错,反而很奇怪。又搜索了一下,网上有详细介绍兼容性安装的,内容如下,有时间大家可以自己去搜索对比一下,以避免冲突,

Anaconda 2020.11 issue with OpenCV

Recently I installed Anaconda 2020.11 on my Mac machine. When I tried to installed opencv package, it showed errors. Below is the error excrept:

$ conda install -c conda-forge opencv
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,=3.5,=3.6,=3.7,            
关注
打赏
1661664439
查看更多评论
0.0383s