参考:https://blog.csdn.net/Firewall5788/article/details/126712876

原因:远程服务器上使用了 python 3.9 或更新版本,导致 json 函数下参数 encoding 非法

在这里插入图片描述

解决:/root/.pycharm_helpers/generator3/__main__.py 第120行 state_json = json.loads(sys.stdin.readline(), encoding=‘utf-8’)删除 encoding=‘utf-8’

在这里插入图片描述

成功

在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐