from typing_extensions import TypeAlias # Python 3.10+ModuleNotFoundError: No module named ‘typin

 from typing_extensions import TypeAlias  # Python 3.10+
ModuleNotFoundError: No module named 'typing_extensions'

解决办法:

方案1:换python版本,我用的是3.8,但是换版本很麻烦,这个方案未使用。

方案2:更新typing-extensions版本

pip install typing-extensions --upgrade

猜你喜欢

转载自blog.csdn.net/qq_45100200/article/details/143337035