-
确认报错位置,报错文件上一级为 torch:
File "/home/jy/anaconda3/envs/py37_NLD/lib/python3.7/site-packages/torch/serialization.py", line 18
-
下载
typing_extensions.py
文件包:- 链接:https://pan.quark.cn/s/1db47c56369c
- 提取码:XJkM
- 将
typing_extensions.py
文件移动到serialization.py
同级文件夹即可:
标签:named,torch,No,py,报错,typing,extensions,serialization From: https://blog.csdn.net/qq_43811536/article/details/143983005