#VS Code fails to detect latest Python interpreter

16 messages · Page 1 of 1 (latest)

rich sluice
#

VS Code detects Python version 3.10.6 whilst python3 --version from my terminal gives 3.11.2. This is causing VS Code to fail to resolve imports, cv2 in my case. It's also failing to run; saying "No module named cv2".

#

Selecting /usr/bin/python3.11 interpreter gives me an Invalid Interpreter error.

iron plover
#

You installer vscode via?

rich sluice
#

Did you try where python3.11 to see if the file exists

#

Sorry ik its kinda obvious

rich sluice
#

actually

#

thats stupid

#

im stupid

rich sluice
#

I quadruple checked

rich sluice
iron plover
#

Well then idk, I never have any problem with python and VSCodium (VSCode)

rich sluice
#

I've never had either

#

only this odd time

#

Running of ol' neovim with coc now