This worked for me with the same issue.
Check if you have multiple Python3.x versions installed. In my case I had Python3.6
and Python3.9
installed. brew uninstall python3
did not remove Python3.6
completely.
I was able to call Python3.9
from Terminal by explicitly running python3.9
instead of python3
, which led me to believe the issue was caused by ambiguity in which Python3.x resource was to be used.
Manually deleted /Library/Frameworks/Python.framework/Versions/3.6
resulted in Python3 running as expected.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…