Flutter基础入门

flutter真机测试 Traceback (most rece

2018-08-13  本文已影响0人  宁静1致远

flutter安装完后,模拟器跑没任何问题,当真机测试时

Traceback (most recent call last):

File "<input>", line 1, in <module>

File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>

import weakref

File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>

from _weakref import (

ImportError: cannot import name _remove_dead_weakref

因为网上资料较少,很是痛苦,其实这个不影响真机运营,但是每每运行都报错,真的不能忍。解决方案:终端输入 brew uninstall --ignore-dependencies python@2 就OK了,直接忽略掉他的报错,感觉瞬间世界清静了。

上一篇下一篇

猜你喜欢

热点阅读