import json就出现错误,平台不兼容?
我在命令窗口直接import json库就出现不能加载 'JSONDecoder' 的错误,搜索也没相关解决方案
>>> import json
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\jso
n\__init__.py", line 106, in <module>
from .decoder import JSONDecoder, JSONDecodeError
ImportError: cannot import name 'JSONDecoder' from 'json.decoder' (C:\Users\Admi
nistrator\AppData\Local\Programs\Python\Python37-32\lib\json\decoder.py)
>>>
----------------------------------------------------------------------------------------
再看下__init__.py", line 106 错误的地方
from .decoder import JSONDecoder, JSONDecodeError
请问这有什么问题吗?
c:\>python --version
Python 3.7.0
win7 32位
谢谢各位大侠