错误:原因:找不到图片-Mac中使用自制python3的斯坦福SNAP

时间:2018-12-12 14:12:31

标签: python-3.x

在使用自制python3运行斯坦福的SNAP图分析库时出现以下错误

snap.py version-snap-5.0.9-64-3.0-macosx10.9.5-x64-py3.6.tar.gz
Python版本-python 3.7

错误

File "/Users/n/workshop/PythonCodes/snap.py", line 21, in <module>
_snap = swig_import_helper()
File “/Users/n/workshop/PythonCodes/snap.py”, line 20, in swig_import_helper
return importlib.import_module('_snap')
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: dlopen(/Users/n/Library/Python/3.7/lib/python/site-packages/_snap.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.6/Python
Referenced from: /Users/n/Library/Python/3.7/lib/python/site-packages/_snap.so
Reason: image not found

0 个答案:

没有答案