SyntaxError: Generator expression must be parenthesized 关于解决python3.7创建django项目时报错问题

SyntaxError: Generator expression must be parenthesized 关于解决python3.7创建django项目时报错问题

使用django-admin startproject django37,但运行的时候报错

SyntaxError: Generator expression must be parenthesized 关于解决python3.7创建django项目时报错问题

解决办法

步骤1

鼠标点击报错栏最后的一个文件。双击进去,找到其中的第152行,将最后的一个逗号去掉。

SyntaxError: Generator expression must be parenthesized 关于解决python3.7创建django项目时报错问题
步骤二

SyntaxError: Generator expression must be parenthesized 关于解决python3.7创建django项目时报错问题

再次运行就不会报错了!????