AttributeError: 'sys.flags' object has no attribute 'utf8_mode'

AttributeError: 'sys.flags' object has no attribute 'utf8_mode'

pycharm工程的py版本是3.6,结果即使使用py3.7编译后的pyc是3.6。

解决方法是删除工程.idea文件夹,重新生成工程。

原文地址:https://www.cnblogs.com/yywBlogW/p/11403656.html