Pillow: libopenjp2.so.7: cannot open shared object file: No such file or directory
What worked for me was running :
sudo apt-get install libopenjp2-7
Good Luck!
Comments
-
Simon Carlson almost 4 years
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 runningsudo apt-get install pip3
and thensudo pip3 install Pillow
. Whenever I tryfrom PIL import Image
I get the errorImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
.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 ransudo apt-get build-dep python-imaging
, which also did not help. Any help is appreciated.Python version: 3.5.3, current Pillow version: 4.3.0