Update install doc with instructions for Windows

Đang mở
#537 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
42/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, tensorflow
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với trang cài đặt TensorFlow Graphics được tham chiếu trong issue và xem lại hướng dẫn cho lệnh pip install --upgrade tensorflow-graphics trên Windows. Xác nhận dependency OpenEXR được ghi trong tài liệu và cách khắc phục cho Windows, sau đó xác minh rằng quá trình cài đặt thành công với môi trường Python 3.6 được mô tả trong báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
2.8k
Fork
374
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/graphics

Tất cả issue của tensorflow/graphics

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.