gpt4 book ai didi

linux - 在 linux-32 上使用 conda 安装 Python3 OpenCV3

转载 作者:太空宇宙 更新时间:2023-11-04 12:40:32 25 4
gpt4 key购买 nike

我在 32 位 linux (Ubuntu 14) 上安装了 python 3.5.1 和 anaconda 2.4.1。我正在尝试安装 openCV (3.1.0),使用 conda 到目前为止没有任何运气......

“menpo” channel (https://anaconda.org/menpo/opencv3)没有 linux-32 版本,通过“msarahan” channel (https://anaconda.org/msarahan/opencv)安装时:

conda install —channel https://conda.anaconda.org/msarahan opencv

尝试在 python 中导入 cv2 时导致以下错误:

ImportError: dynamic module does not define module export function (PyInit_cv2)

有什么建议我应该如何进行?提前致谢!

最佳答案

这个问题可以通过binstar下载解决。这是我尝试将其安装到环境中的内容 env_name

conda install -n <env_name> -c https://conda.binstart.org/menpo opencv
在 python shell 中

>>> import cv2

关于linux - 在 linux-32 上使用 conda 安装 Python3 OpenCV3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40380736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com