- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试安装OpenEXR。
使用 :
MacOS 10.14.5
的Python 3.6.5
Xcode版本10.2.1
我试过了
pip install openexr
Collecting openexr
Using cached https://files.pythonhosted.org/packages/7c/c4/76bf884f59d3137847edf8b93aaf40f6257d8315d0064e8b1a606ad80b1b/OpenEXR-1.3.2.tar.gz
Building wheels for collected packages: openexr
Building wheel for openexr (setup.py) ... error
ERROR: Complete output from command /Users/silviojin/anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-install-0_bh3qoe/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 /private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-wheel-gq2luicr --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
copying Imath.py -> build/lib.macosx-10.7-x86_64-3.6
running build_ext
building 'OpenEXR' extension
creating build/temp.macosx-10.7-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/silviojin/anaconda3/include -arch x86_64 -I/Users/silviojin/anaconda3/include -arch x86_64 -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/Users/silviojin/anaconda3/include/python3.6m -c OpenEXR.cpp -o build/temp.macosx-10.7-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.2"
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from OpenEXR.cpp:36:
In file included from /usr/local/include/OpenEXR/ImathBox.h:65:
In file included from /usr/local/include/OpenEXR/ImathVec.h:46:
In file included from /usr/local/include/OpenEXR/ImathExc.h:47:
/usr/local/include/OpenEXR/IexBaseExc.h:49:10: fatal error: 'string' file not found
#include <string>
^~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for openexr
Running setup.py clean for openexr
Failed to build openexr
Installing collected packages: openexr
Running setup.py install for openexr ... error
ERROR: Complete output from command /Users/silviojin/anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-install-0_bh3qoe/openexr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-record-82it1du_/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
copying Imath.py -> build/lib.macosx-10.7-x86_64-3.6
running build_ext
building 'OpenEXR' extension
creating build/temp.macosx-10.7-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/silviojin/anaconda3/include -arch x86_64 -I/Users/silviojin/anaconda3/include -arch x86_64 -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/Users/silviojin/anaconda3/include/python3.6m -c OpenEXR.cpp -o build/temp.macosx-10.7-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.2"
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from OpenEXR.cpp:36:
In file included from /usr/local/include/OpenEXR/ImathBox.h:65:
In file included from /usr/local/include/OpenEXR/ImathVec.h:46:
In file included from /usr/local/include/OpenEXR/ImathExc.h:47:
/usr/local/include/OpenEXR/IexBaseExc.h:49:10: fatal error: 'string' file not found
#include <string>
^~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/Users/silviojin/anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-install-0_bh3qoe/openexr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-record-82it1du_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/g9/k_xb1tyd5hbg_48np5hvwh3m0000gn/T/pip-install-0_bh3qoe/openexr/
pip install pyexr
brew install openexr
最佳答案
对我来说,它首先通过brew安装OpenEXR,然后直接通过git安装
brew install openexr
pip install git+https://github.com/jamesbowman/openexrpython.git
关于python - 为Python安装OpenEXR失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57061350/
我已经开始使用 OpenEXR 加载 EXR 图像。我必须使用浮点类型获取 RGB 像素。 对于 RGB 图像,加载没有问题,使用以下代码: ImfInputFile *iFile = ImfOpen
在尝试执行 OpenGL SuperBible 第 5 版中的示例时,我遇到了很多问题。来自 Chapter09/hdr_bloom。 问题是由链接 OpenEXR 库引起的,所以我手动构建它们并用作
我正在尝试使用这个dataset要做Exposure Meging (Fusion)在Python中。数据集中的每个图像都有 OpenEXR可以下载的文件(我对此文件格式没有太多经验)。 我想从具有不
我正在尝试使用这个dataset要做Exposure Meging (Fusion)在Python中。数据集中的每个图像都有 OpenEXR可以下载的文件(我对此文件格式没有太多经验)。 我想从具有不
我尝试创建一个解决方案,允许我在 Java 中读取 OpenExr 图像并在 JOGL 中使用纹理的像素数据。因为 Java 中没有免费的 OpenExr 库(没有找到任何有效的东西),所以我的想法是
我正在尝试在windows7上使用mingw编译openexr。我收到此错误: main.cpp: In function 'int main(int, char**)': main.cpp:213:
GetPixels() 来自使用 FreeImage 库(96 位:3 x 32 位 IEEE 浮点)加载的 EXR 图像。这个想法是将像素数据转换为 QImage::Format_RGB888。 编
我正在尝试使用 cygwin 编译 OpenEXR,但我遇到了麻烦。 到目前为止我做了什么: cd ilmbase-X.X.X ./configure make make install make c
我在项目中使用 PyInstaller 3.3.1 和 OpenEXR 1.3.0。 我使用 --onefile 选项创建单个文件可执行文件。 这按预期工作: import sys if getatt
我在为包含 OpenEXR 定义的半类型的 Imf::Rgba 结构赋值时遇到问题。似乎存在与从 float 到 half 的转换有关的链接器错误。 Linking CXX executable gr
我正在尝试使用一个 channel 加载 OpenEXR 格式的深度图像,但是,我无法根据以下文档找出我需要使用的格式:http://www.openexr.com/documentation/Rea
我已经在我的 Mac 上使用 pip install openexr 成功安装了 openexr,但同样的命令在 Ubuntu 上失败了: OpenEXR.cpp:9:22: fatal error:
如果之前已经回答过这个问题,我深表歉意。我尝试了很多选择,但似乎无法解决我的问题。 我有一系列 OpenEXR 图像,我想将它们合并到 WebM 中并包含透明度。这是我的 ffmpeg 命令的基础知识
我执行了 npm install在 Mac 上的 gatsby js 目录中。 macOs 是大苏尔 版本是 11.4。 Gatsby 版本是 3.11.0 gatsby-plugin-sharp 版
我在使用 CMake 为 Windows 7 构建 OpenEXR 时遇到问题。 我正在按照描述的说明进行操作 here 我运行cmake命令后的cmd输出如下: Microsoft Windows
我是一名优秀的程序员,十分优秀!