2017-08-09 713 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」也必須安裝頭文件。