导入imgaug时出错:ImportError:libjpeg.so.9

时间:2018-06-10 11:16:05

标签: python python-2.7 shared-libraries anaconda libjpeg

我试过安装imgaug。虽然它已经安装好了。从jupyter笔记本执行时我遇到错误。

from imgaug import augmenters as iaa
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/anaconda2/envs/tensorflow/lib/python2.7/site-packages/imgaug/_init_.py", line 2, in <module>
from .imgaug import *
File "/home/anaconda2/envs/tensorflow/lib/python2.7/site-packages/imgaug/imgaug.py", line 7, in <module>
import cv2
ImportError: libjpeg.so.9: cannot open shared object file: No such file or directory

我检查了包裹:

dpkg --get-selections | grep libjpeg
libjpeg-dev:amd64                   install
libjpeg-turbo8:amd64                install
libjpeg-turbo8-dev:amd64            install
libjpeg8:amd64                      install
libjpeg8-dev:amd64                  install

我必须将libjpeg8更新为libjpeg9吗? 我也试过了      conda update -c conda-forge jpeg 它没有更新到libjpeg9

我还检查过其他文件但没有成功。 如果您帮助解决错误,将非常感激。

0 个答案:

没有答案