简体   繁体   中英

How to set portable python path in portable Visual Studio code?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM