[英]no module named cv2 on exporting anaconda path
I have ubuntu 14.04
in which I installed OpenCV3
it works fine then I installed anaconda(python). 我有
ubuntu 14.04
在其中安装了OpenCV3
它工作正常,然后安装了anaconda(python)。 To make it work it said that I have to edit ~/.bashrc and export the anaconda path to it. 为了使它起作用,它说我必须编辑〜/ .bashrc并将anaconda路径导出到它。
I changed to python 2.7.8 and it gives an error: no module named cv2 error..
and if I comment that line in .bashrc then python gets changed to 2.7.6 and the error disappears. 我更改为python 2.7.8 ,它给出了一个错误:
no module named cv2 error..
如果我在.bashrc中注释该行,则python更改为2.7.6,错误消失了。 What should I do ? 我该怎么办 ?
This is the error when I include the line in bashrc 当我在bashrc中包含该行时,这是错误
Traceback (most recent call last):
File "test.py", line 7, in <module>
import cv2
ImportError: /home/aman/anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15' `not found (required by /usr/lib/x86_64-linux-gnu/libxvidcore.so.4)
Try running conda remove system
. 尝试运行
conda remove system
。 This will remove the libm.so.6
file from Anaconda. 这将从Anaconda中删除
libm.so.6
文件。 See https://github.com/ContinuumIO/anaconda-issues/issues/182 参见https://github.com/ContinuumIO/anaconda-issues/issues/182
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.