LoginSignup
3
1

More than 1 year has passed since last update.

[OpenEXR] WindowsでPython用OpenEXRをインストールする際の手順

Last updated at Posted at 2022-03-03

Python用のOpenEXRライブラリをpipでインストールする際に躓いたのでまとめておきます。

手順

まず普通にインストールを試みる

terminal
pip install OpenEXR
>>> Collecting OpenEXR
  Downloading OpenEXR-1.3.7.tar.gz (11 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for OpenEXR, since package 'wheel' is not installed.
Installing collected packages: OpenEXR
  Running setup.py install for OpenEXR ... error
  error: subprocess-exited-with-error

何やらエラーを吐いて失敗した。

色々調べてみると、どうやら非公式のWindowsバイナリを使ってインストールするとうまくいくらしい。

Python上で自分の環境の対応cpを調べてみる。

Python
from pip._internal.utils.compatibility_tags import get_supported
print(get_supported())

対応するcpのリストが出力されるので、どれかに対応したwhlファイルをDLする。

DLしたwhlファイルを使ってインストールする。

terminal
pip install "whlファイルのパス"

インストール完了!

3
1
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
3
1