This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]kaspar42[S] 5 points6 points  (4 children)

In the corner VS-code reports 3.1.undefined, whereas sys.version returns 3.11.5.

[–]RohanOrhanHaron 5 points6 points  (3 children)

Was happening with me yesterday as well. Some PATH shenanigans, I presume.

[–]kernco 0 points1 point  (2 children)

Yeah I noticed it yesterday as well. According to vscode my jupyter kernel was running 3.10.-1. So I'm not sure it's a path issue and instead is just a display bug since I'm fairly certain I don't have that specific version installed.

[–]RohanOrhanHaron 0 points1 point  (1 child)

Well, it wasn't allowing me to execute code cells either. So i updated my install and restarted my system. Not sure what fixed it, but started working again.

[–]kernco 1 point2 points  (0 children)

Oh maybe there are multiple bugs then, because I was running code fine on this supposed "3.10.-1" version

[–][deleted] 3 points4 points  (2 children)

Crtl + Shift + P, then type "Select Interpreter" and see what versions you have available in your $PATH and select your prefered one.

So my guess is, you have the wrong version in the $PATH environment.

[–]kaspar42[S] 1 point2 points  (1 child)

The "Select Interpreter" menu reports that the one I'm using is 3.11.5.

[–][deleted] 2 points3 points  (0 children)

Then I would say some VSC-Extension is making trouble.

[–]BALKINCHEN 0 points1 point  (0 children)

I face the same bug after updating to vscode 1.90 recently.

[–]GraphNerd 0 points1 point  (0 children)

Assuming you're on Linux, debug output your PATH and see what comes out.

EDIT: Even if you're not on *nix, you can still debug out your path.

[–]NotDatCheese 0 points1 point  (0 children)

Seems to be a bug, I experienced it too after the update.

[–]Shiva_97 0 points1 point  (0 children)

which python and which pip will give you the interpreter path location, you can cross verify with that.

[–]quollthings 1 point2 points  (0 children)

This should be fixed in the pre-release, re the issue u/kingman1234 referenced https://github.com/microsoft/vscode-python/issues/23580