Reputation: 49
I am trying to run python file in portable Visual Studio Code.
I added "python.pythonPath":"./../"
in launch.json
file to set path.
But it doesn't work.
I need to set python path in vscode. I want to execute on portable python interpreter. What can I do for solving this problem?
Upvotes: 0
Views: 1427
Reputation: 54698
When you entered "../../", what did you think that was relative to? python.pythonPath
should have the absolute path to your Python interpreter. It should start from C:
and it should end with python.exe
. The Python: Select Interpreter
command (from Ctrl-Shift-P) can help you choose this.
Upvotes: 1