在Mac上导入OpenEXR时出错

时间:2018-04-07 15:25:23

标签: python computer-vision deep-learning openexr

我无法在jupyter笔记本中导入OpenEXR模块。在导入时抛出以下错误。 我正在使用MacOS High Sierra。并在conda环境中工作。 ImportError: dlopen(/Users/siddharthdas/anaconda3/lib/python3.6/site-packages/OpenEXR-1.3.0-py3.6-macosx-10.7-x86_64.egg/OpenEXR.cpython-36m-darwin.so, 2): Symbol not found: __ZN7Imf_2_214TypedAttributeISsE13readValueFromERNS_7IStreamEii Referenced from: /Users/siddharthdas/anaconda3/lib/python3.6/site-packages/OpenEXR-1.3.0-py3.6-macosx-10.7-x86_64.egg/OpenEXR.cpython-36m-darwin.so Expected in: flat namespace in /Users/siddharthdas/anaconda3/lib/python3.6/site-packages/OpenEXR-1.3.0-py3.6-macosx-10.7-x86_64.egg/OpenEXR.cpython-36m-darwin.so' 导入OpenEXR时会显示以上错误 然后我为.scfile运行otool -l,输出为 /Users/siddharthdas/anaconda3/lib/python3.6/site-packages/OpenEXR-1.3.0-py3.6-macosx-10.7-x86_64.egg/OpenEXR.cpython-36m-darwin.so: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags 0xfeedfacf 16777223 3 0x00 8 17 2048 0x00018085 Load command 8 cmd LC_LOAD_DYLIB cmdsize 64 name /opt/local/lib/libIex-2_2.12.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 13.0.0 compatibility version 13.0.0 Load command 9 cmd LC_LOAD_DYLIB cmdsize 56 name /opt/local/lib/libHalf.12.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 13.0.0 compatibility version 13.0.0 Load command 10 cmd LC_LOAD_DYLIB cmdsize 64 name /opt/local/lib/libImath-2_2.12.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 13.0.0 compatibility version 13.0.0 Load command 11 cmd LC_LOAD_DYLIB cmdsize 64 name /opt/local/lib/libIlmImf-2_2.22.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 23.0.0 compatibility version 23.0.0 Load command 12 cmd LC_LOAD_DYLIB cmdsize 48 name @rpath/libz.1.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 1.2.11 compatibility version 1.0.0 Load command 13 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/lib/libstdc++.6.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 104.1.0 compatibility version 7.0.0 Load command 14 cmd LC_LOAD_DYLIB cmdsize 56 name /usr/lib/libSystem.B.dylib (offset 24) time stamp 2 Thu Jan 1 05:30:02 1970 current version 1252.50.4 compatibility version 1.0.0 Load command 15 cmd LC_FUNCTION_STARTS cmdsize 16 dataoff 70072 datasize 184 Load command 16 cmd LC_DATA_IN_CODE cmdsize 16 dataoff 70256 datasize 0 告诉我如何解决这个问题。

0 个答案:

没有答案