[Solved] ubuntu Run jupyter Error: print(‘Error in generated code:‘, file=sys.stderr) SyntaxError: invalid syntax

Modification Bashrc file

vim ~/.bashrc

Then add the following two lines of code at the end

export LANG=en_US:UTF-8
export LANGUAGE=en_US:en

After closing the file, finally execute the following code

source ~/.bashrc

Read More: