我正在尝试使用Anaconda prompt安装OpenCV。我尝试过anaconda和conda-forge版本。
使用前面提到的article's命令后:-
conda安装-c menpo 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.
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']
有人能帮个忙吗?我想在Anaconda的spyder中运行opencv
conda 4.7.12 Python 3.7.4操作系统: Win10 x64
发布于 2019-10-17 15:46:40
看起来hdf5和你的分期付款有冲突。您应该尝试使用conda创建一个新的虚拟环境,并在安装openCV之前从此环境中删除hdf5。这样你会很安全的。
你可以这样做:
conda create --name test_env
conda activate test_env
conda remove hdf5
conda install -c conda-forge opencv
https://stackoverflow.com/questions/58427169
复制相似问题