枕头:libopenjp2.so.7:无法打开共享对象文件:没有这样的文件或目录

枕头:libopenjp2.so.7:无法打开共享对象文件:没有这样的文件或目录

问题描述:

我有一个全新的,最小的Raspbian Stretch安装程序.我已经通过运行sudo apt-get install --no-install-recommends xserver-xorg 安装了PIXEL-dekstop,现在正在尝试在Python中使用Pillow.通过运行sudo apt-get install pip3然后运行sudo pip3 install Pillow来安装枕头.每当我尝试from PIL import Image时,都会出现错误ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory.

I have a fresh, minimal Raspbian Stretch install. I have installed the PIXEL-dekstop by running sudo apt-get install --no-install-recommends xserver-xorg and am now trying to use Pillow in Python. Pillow was installed by running sudo apt-get install pip3 and then sudo pip3 install Pillow. Whenever I try from PIL import Image I get the error ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory.

我试图在不同版本下重新安装Pillow,但这无济于事.我还启用了/etc/apt/sources.txt中的apt-get源并运行了sudo apt-get build-dep python-imaging,这也无济于事.感谢您的帮助.

I have attempted to reinstall Pillow under different versions but it does not help. I have also enabled apt-get sources in /etc/apt/sources.txt and ran sudo apt-get build-dep python-imaging, which also did not help. Any help is appreciated.

Python版本:3.5.3,当前枕头版本:4.3.0

Python version: 3.5.3, current Pillow version: 4.3.0

正在为我运行的是:

sudo apt-get install libopenjp2-7

祝你好运!