2017-08-09 308 views
0

我的Mac上使用pip install openexr我已成功安装的OpenEXR,但相同的命令在Ubuntu上失败:在python安装的OpenEXR不起作用

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 

我尝试使用apt-get install openexr这似乎是安装没有错误,但当我尝试在Python中尝试import OpenEXR时,它不起作用。

有谁知道为什么?

回答

1

您需要安装apt软件包“libopenexr-dev的”,这将解决问题的点子上。

我在mac上没有这个问题,“brew install openexr”也必须安装头文件。