Update install doc with instructions for Windows

オープン
#537 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
42/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, tensorflow
領域
documentation

調査の方向性

Issue で参照されている TensorFlow Graphics のインストールページから始め、Windows 上での pip install --upgrade tensorflow-graphics コマンドの手順を確認してください。記載されている OpenEXR 依存関係と Windows の回避策を確認し、その後、報告で説明されている Python 3.6 環境でインストールが成功することを検証してください。

索引モデルが issue の本文から書いたものです。

説明

Failed to install tensorflow-graphics on Windows

OS: Windows 10 Enterprise, 2019, 64 Bit
Reference page: https://www.tensorflow.org/graphics/install
Command used: pip install --upgrade tensorflow-graphics
Errors:

  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\<>\AppData\Local\Continuum\anaconda3\envs\tf2\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\<>\\AppData\\Local\\Temp\\pip-install-7rwn720y\\OpenEXR\\setup.py'"'"'; __file__='"'"'C:\\Users\\<>\\AppData\\Local\\Temp\\pip-install-7rwn720y\\OpenEXR\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\<>\AppData\Local\Temp\pip-wheel-fo90orx6' --python-tag cp36
       cwd: C:\Users\<>\AppData\Local\Temp\pip-install-7rwn720y\OpenEXR\
			 

Looks like installing OpenEXR is not Optional or for Linux, as specified at the https://www.tensorflow.org/graphics/install

Getting OpenEXR installed via pip install --upgrade OpenEXR fails with following error:

OpenEXR.cpp(36): fatal error C1083: Cannot open include file: 'ImathBox.h': No such file or directory
 error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.23.28105\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
 ----------------------------------------
 ERROR: Failed building wheel for OpenEXR

Reason: Imathbox.h missing, due to missing libopenexr-dev, need to install as per OS.

Workarounds tried:

  • conda install -c conda-forge openexr [installed without error, but then rerun of pip install --upgrade tensorflow-graphics failed again.
  • pip install git+https://github.com/jamesbowman/openexrpython.git FAILED
  • Install OpenEXR from https://www.lfd.uci.edu/~gohlke/pythonlibs/#openexr (Unofficial) with appropriate python version
    pip install Downloads\OpenEXR-1.3.2-cp36-cp36m-win_amd64.whl for Python 3.6.9, then re-run pip install --upgrade tensorflow-graphics. WORKED!!

Suggestion: Update INSTALL instructions accordingly.

主要言語
Python
スター
2.8k
フォーク
374
平均マージ
5日 9時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/graphics のほかの issue

tensorflow/graphics の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。