TERM environment variable not set.


Joined
Jul 20, 2023
Messages
30
Reaction score
1
I started getting this error quite a while ago in pycharm only. Cant quite pinpoint what else may have caused it. I for the most part just continued to work around it. Before the error started coming up it worked perfectly. What brings it up is my clear_screen function. It works fine if I just run the file in terminal and it also runs good in VS Code but only in Pycharm does this error pop up. And for reference I am running Linux Mint. Heres the clear screen code.
Python:
import os

def clear_screen():
    if os.name == 'nt':
        os.system('cls')  # For Windows
    else:
        os.system('clear')  # For other platforms like macOS and Linux
 
Ad

Advertisements

Joined
Dec 10, 2022
Messages
53
Reaction score
14
What's the error? If it's pycharm only, kind of sounds like a path issue.
 
Last edited:
Ad

Advertisements

Joined
Jul 20, 2023
Messages
30
Reaction score
1

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top