当我尝试导入 hap 以进行特征选择时遇到以下问题。
NotFoundError: dlopen(/Users/jason/ARM64/miniforge3/envs/TF/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 6): Symbol not found: _TF_AllocateOutput Referenced from: /Users/jason/ARM64/miniforge3/envs/TF/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib Expected in: flat namespace
我该如何解决?
答案 0 :(得分:0)
我遇到了同样的错误:
% conda list tensorflow
# packages in environment at /Users/davidlaxer/anaconda3:
#
# Name Version Build Channel
mesh-tensorflow 0.1.19 pypi_0 pypi
tensorflow 2.5.0 pypi_0 pypi
tensorflow-datasets 4.3.0 pypi_0 pypi
tensorflow-estimator 2.5.0 pypi_0 pypi
tensorflow-hub 0.12.0 pypi_0 pypi
tensorflow-metadata 1.0.0 pypi_0 pypi
tensorflow-text 2.5.0rc0 pypi_0 pypi
(tensorflow-metal) (base) davidlaxer@x86_64-apple-darwin13 ~ % ipython
Python 3.8.5 (default, Sep 4 2020, 02:22:02)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.24.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import tensorflow
---------------------------------------------------------------------------
NotFoundError Traceback (most recent call last)
<ipython-input-1-d6579f534729> in <module>
----> 1 import tensorflow
~/tensorflow-metal/lib/python3.8/site-packages/tensorflow/__init__.py in <module>
447 _plugin_dir = _os.path.join(_s, 'tensorflow-plugins')
448 if _os.path.exists(_plugin_dir):
--> 449 _ll.load_library(_plugin_dir)
450 # Load Pluggable Device Library
451 _ll.load_pluggable_device_library(_plugin_dir)
~/tensorflow-metal/lib/python3.8/site-packages/tensorflow/python/framework/load_library.py in load_library(library_location)
152
153 for lib in kernel_libraries:
--> 154 py_tf.TF_LoadLibrary(lib)
155
156 else:
NotFoundError: dlopen(/Users/davidlaxer/tensorflow-metal/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib, 6): Symbol not found: _TF_AssignUpdateVariable
Referenced from: /Users/davidlaxer/tensorflow-metal/lib/python3.8/site-packages/tensorflow-plugins/libmetal_plugin.dylib
Expected in: flat namespace
In [2]: quit()