I use Pycharm and when I run this Python code
os.system("clear")
I get this error:
TERM environment variable not set
In the Python Console, in the variables, I put
export TERM = xterm
What else can I do?
I use Pycharm and when I run this Python code
os.system("clear")
I get this error:
TERM environment variable not set
In the Python Console, in the variables, I put
export TERM = xterm
What else can I do?
Try this configuration, i found it very helpful after struggling finding the solution and after configure the correct TERM variable.
There is a simple solution for this. You need to go to the 'Run/Debug configuration' You can do this by going to 'Run' and selecting Edit configuration option on the title bar.
Then you can go to the environment variable option to add the environment variable 'TERM' and set the value as 'xterm-color'
you can check it out on this website. http://softwaretester.info/pycharm-term-environment-variable-not-set/