在python安装的OpenEXR不起作用
问题描述:
我的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
时,它不起作用。
有谁知道为什么?
答
openexr只是C++的实现。您需要py-openexr才能在python中使用。你可以找到如何安装此链接
答
您需要安装apt软件包“libopenexr-dev的”,这将解决问题的点子上。
我在mac上没有这个问题,“brew install openexr”也必须安装头文件。