Another thing that i want to suggest. as you are using "fish" shell..
so try this one time.. see if it's went well or not
"code-runner.executorMap": { "python": "source .venv/bin/activate.fish && python" }