I am using pyright lsp. I open a python file. I want to switch my virtual environment. I type , v w and select my virtual env. I execute my python file using , c c. However, the base python env is chosen instead of the selected virtualenv. How can I fix this? I have tried restarting lsp but it doesn't work.
Also, eshell expects venv file in the project root directory. Why both are using different venv.
I am using pyright lsp. I open a python file. I want to switch my virtual environment. I type
, v w
and select my virtual env. I execute my python file using, c c
. However, the base python env is chosen instead of the selected virtualenv. How can I fix this? I have tried restarting lsp but it doesn't work.Also, eshell expects venv file in the project root directory. Why both are using different venv.