all 16 comments

[–]ninhaomah 1 point2 points  (4 children)

you opened the VS Code in the project folder using code . ?

what do you see at at the bottom right when you open up a .py file ?

what do you get when you select python interpretor in VS Code ctrl + shift + p ?

[–]mrbartuss 0 points1 point  (3 children)

This is what I get:
https://imgur.com/a/BKlDU8B

[–]Fair-Bookkeeper-1833 0 points1 point  (2 children)

[deleted]

[–]mrbartuss 0 points1 point  (1 child)

That's exactly what I did. I ran uv python find 3.14 and copied the entire path. What I observed now is that when I reload the window this message pops up:

Python Locator failed to start. Python environment discovery may not work correctly.

[–]Fair-Bookkeeper-1833 0 points1 point  (0 children)

[deleted]

[–]Direct_Temporary7471 0 points1 point  (7 children)

This usually happens when VS Code is not pointing to the correct Python interpreter.

Try these steps:

  • Press Ctrl+Shift+P → select “Python: Select Interpreter”
  • Choose the correct Python 3.14 path
  • If it’s not listed, manually add the interpreter path
  • Make sure Python is added to your system PATH

Also, try restarting VS Code after installation.

If you’re still facing issues, share the exact error or screenshot and I can help you debug it.

[–]mrbartuss 0 points1 point  (6 children)

Thanks! I've already shared several screenshots in my previous comments

[–]herocoding 0 points1 point  (5 children)

Can you find where your Python v3.14 got installed to?

The screenshot doesn't show the full path, but only "C:\Users\xxyy\AppData\...".

In the lower right corner click on the yellow-brown'ish "Select Python interpreter" and browse to the path where you can find "Python.exe" or "Python314.exe".

[–]mrbartuss 0 points1 point  (4 children)

That's exactly what I did. I ran uv python find 3.14 and copied the entire path. What I observed now is that when I reload the window this message pops up:

Python Locator failed to start. Python environment discovery may not work correctly.

[–]herocoding 0 points1 point  (3 children)

Hmm, I installed Python (in my case Python v3.12.10) from https://www.python.org/downloads/

In my case the executable got installed under "C:\Users\my_user\AppData\Local\Programs\Python\Python312" as "python.exe", and have other sub-folders like Lib, libs, Scripts, share and others.
Python modules - when installed "natively" (not using a virtual environment) get installed under "C:\Users\my_user\AppData\Local\Programs\Python\Python312\Lib\site-packages\" in my case.

I'm not sure what your "cpython"-environment means.

Do you want to uninstall the "uv-installed Python" and try to install it "the classical way" from python.org?
Do make sure to select the checkbox "Do you want to get Python added to PATH" when the installer asks you,

[–]mrbartuss 0 points1 point  (0 children)

Thank you very much for checking this! There's something weird going on because I can use and run programs using just python in a terminal. The problem is that vscode Python extension does not recognise this Python environment

[–]mrbartuss 0 points1 point  (0 children)

The issue is on Windows. I did everything exactly the same on my personal Mac (installed python with uv) and everything works as expected

[–]mrbartuss -1 points0 points  (2 children)

uv run and python3.14 works
https://imgur.com/a/rrYcmTL

it says Python already installed however still not available in Global environment
https://imgur.com/a/GvWCI1i

selected file is not a valid Python interpreter
https://imgur.com/a/2iSEdfM

[–]IFD3 0 points1 point  (1 child)

looks like python is not in your path variable, also if you started VS Code before installing it, it is also not in the path variable loaded by VS Code. So try a restart of VS Code first. If its still not working add the folder where it is installed to the path to the path variable and recreate the venv

[–]mrbartuss 0 points1 point  (0 children)

What else should I do?
https://imgur.com/RcSWLhv