TERM environment variable not set on Python code

darek_82 picture darek_82 · Aug 10, 2016 · Viewed 8.4k times · Source

I use Pycharm and write in Python code with os.system("clear") an when I execute I have this line

TERM environment variable not set

In Python Console in variables I put export TERM = xterm

What can I do?

Answer

naor ohayon picture naor ohayon · Dec 5, 2020

Try this configuration, i found it very helpful after struggling finding the solution and after configure the correct TERM variable.

enter image description here