0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PythonのOpenEXRモジュールをpipで入れるとImfIO.hが見つからない場合の対処法@Rocky Linux 8

Last updated at Posted at 2025-04-09

自己紹介

株式会社digitalbigmoのパイプラインエンジニアの小池@plinecomです。

これは何?

pythonのOpenEXRモジュールをpipで入れようとすると、以下のようなエラーが出ることがある。
RockyLinux 8 での対処方法を記す。

terminal
    OpenEXR.cpp:36:10: fatal error: ImfIO.h: No such file or directory
     #include <ImfIO.h>
              ^~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

対処方法

terminal
dnf install -y python3 python3-devel gcc gcc-c++ epel-release zlib-devel
dnf config-manager --set-enabled powertools
dnf localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
dnf install -y OpenEXR-devel
pip3 install OpenEXR

おまじないのように上記の呪文を1行ずつ順番に唱える。
簡単に解説すると、pipで引っ張ってきているOpenEXRのソースが足りないっぽいので、いっそのこと別のところからコンパイル済みのバイナリをもらってきて、それで充足している。

宣伝

株式会社digitalbigmoでは美肌プラグインの販売や映像VFXの制作業務を行なっています。ご興味のある方は、webページを見にきてください。一緒にお仕事しましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?