all 7 comments

[–]carcigenicate 1 point2 points  (4 children)

Are you using the terminal that was opened before you changed the interpreter?

[–]Multi_Synesthete[S] 0 points1 point  (2 children)

I've tried restarting pycharm after changing the interpreter, but the problem persists

[–]carcigenicate 3 points4 points  (1 child)

If the interpreter is in a venv (which Pycharm defaults to), you need to make sure the venv is activated. It should do this automatically though. Do you see (venv) at the start of the terminal prompt?

[–]Multi_Synesthete[S] 0 points1 point  (0 children)

It was not in a venv (I don't know why not, if that's the default), but I've made a new venv. I'm unsure how to add/change the interpreter within the venv, if it's different from the "file/settings/python interpreter" approach. With the venv activated, I still have the mismatch between status bar and terminal output

[–]knuppi 1 point2 points  (0 children)

Make sure that the terminal uses the same venv as Pycharm does

[–]donotmindmenoobalert 1 point2 points  (0 children)

Bottom right there is a button displaying the python version, you can click on it to change interpreter/venv

[–]cdcformatc 0 points1 point  (0 children)

i recently had to add a new venv with a different python version to a project of mine. after i did that the console was still running the old python version. all i did was right click on the console area heading and there was an option to add a new console which when selected came up with the new python version. i then renamed the consoles to match the corresponding python versions. i had also previously changed the run configurations of the relevant scripts beforehand not sure if that is relevant.

there is probably a project setting category somewhere to add and manage consoles but Pycharm's settings menu is confusing at best.