X-PLUG / MobileAgent

Mobile-Agent: The Powerful Mobile Device Operation Assistant Family
https://arxiv.org/abs/2406.01014
MIT License
3.04k stars 281 forks source link

AttributeError: module 'tensorflow' has no attribute '__version__' #38

Open aohang111 opened 3 months ago

aohang111 commented 3 months ago

按照readme操作,提示zsh: illegal hardware instruction 然后参考其他issue换了下TensorFlow的版本为tensorflow-macos==2.9 再次运行报错 Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/modelscope/utils/import_utils.py", line 451, in _get_module return importlib.import_module('.' + module_name, self.name) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/modelscope/pipelines/cv/ocr_utils/ops.py", line 16, in if tf.version >= '2.0': AttributeError: module 'tensorflow' has no attribute 'version'