0

我按照这个网站上的说明在我的 PyCharm 上设置了 Black(我按照 Windows 步骤操作)。我已将它设置为在每次保存时运行,并且我也已经为它设置了键绑定。当我运行它时,它给了我以下错误:

error: cannot format path\to\python\program.py: module 'blib2to3.pygram' has no attribute 'python_grammar_no_print_statement_no_exec_statement_async_keywords'
Oh no! \U0001f4a5 \U0001f494 \U0001f4a5
1 file failed to reformat.

我能做些什么呢?

4

0 回答 0