首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在Anaconda中解决环境安装问题?

如何在Anaconda中解决环境安装问题?
EN

Stack Overflow用户
提问于 2019-10-17 15:30:11
回答 1查看 5.4K关注 0票数 2

我正在尝试使用Anaconda prompt安装OpenCV。我尝试过anaconda和conda-forge版本。

使用前面提到的article's命令后:-

conda安装-c menpo opencv

我收到以下信息:

代码语言:javascript
运行
复制
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

有人能帮个忙吗?我想在Anaconda的spyder中运行opencv

conda 4.7.12 Python 3.7.4操作系统: Win10 x64

EN

Stack Overflow用户

发布于 2019-10-17 15:46:40

看起来hdf5和你的分期付款有冲突。您应该尝试使用conda创建一个新的虚拟环境,并在安装openCV之前从此环境中删除hdf5。这样你会很安全的。

你可以这样做:

代码语言:javascript
运行
复制
conda create --name test_env
conda activate test_env
conda remove hdf5
conda install -c conda-forge opencv
票数 1
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58427169

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档