Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install openexr in python doesn't work

I have successfully installed openexr using pip install openexr on my mac, but the same command fails on Ubuntu:

OpenEXR.cpp:9:22: fatal error: ImathBox.h: No such file or directory
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for openex

I tried using apt-get install openexr which seems like to install without an error but then when I try to import OpenEXR in python, it doesn't work.

Does anyone know why?

like image 724
programmingIsFun Avatar asked Aug 09 '17 23:08

programmingIsFun


2 Answers

Works as recently as Ubuntu 18.04:

sudo apt-get install libopenexr-dev
sudo apt-get install openexr

pip install OpenEXR --user

like image 143
João Cartucho Avatar answered Sep 16 '22 17:09

João Cartucho


You first need to install zlib by:

$ sudo apt-get install zlib1g-dev
like image 37
kde Avatar answered Sep 20 '22 17:09

kde