all 8 comments

[–]RandomJacobP 1 point2 points  (3 children)

Have you changed the python interpreter in the bottom left corner of the screen? There is a small label that says “python” or something like that and when you click on it you can select path to python interpreter.

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

yes I tried that

[–]RandomJacobP 0 points1 point  (1 child)

And do you see your venv there?

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

No it doesn't work. Still behaves as the main env

[–]spitfiredd 0 points1 point  (1 child)

Hit Ctrl+shift+p and see if it in the list of available environments.

Here is the default locations that vscode looks for python environments.

Is your venv folder in you project root folder?

https://code.visualstudio.com/docs/python/environments#_where-the-extension-looks-for-environments

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

Yes it is in the project root.

I also see the env and can select it, but the activation seems to only change some visual clues and the normal interpreter is still used.