简体   繁体   English

Anaconda OpenCV Arch Linux libselinux.so 错误

[英]Anaconda OpenCV Arch Linux libselinux.so error

I have installed Anaconda 64 bit on a relatively fresh install of Arch.我已经在相对较新的 Arch 安装上安装了 Anaconda 64 位。

I followed the instructions here to set up a virtual environment for opencv:我按照这里的说明为opencv设置了一个虚拟环境:

conda create -n opencv numpy scipy scikit-learn matplotlib python=3
source activate opencv
conda install -c https://conda.binstar.org/menpo opencv3

When I run "import cv2" on the activated virtual environment I get:当我在激活的虚拟环境上运行“import cv2”时,我得到:

ImportError: libselinux.so.1: cannot open shared object file: No such file or directory

I have no clue how to fix this - do I need to make kernel changes?我不知道如何解决这个问题 - 我需要更改内核吗? Thanks for any help.谢谢你的帮助。

Fixed with installing the libselinux package in the AUR:修复了在 AUR 中安装 libselinux 包的问题:

yaourt -S libselinux

I now have another problem:我现在有另一个问题:

ImportError: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: FcWeightToOpenType

Solved as in issue 368已解决问题368

conda install -c asmeurer pango

要解决此问题,您可以使用以下命令安装缺少的软件包:

yaourt -S libselinux

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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