I’m a little confused with this scenario about which python interpreter is used:
I use vscode to ssh to the python codes in a remote machine, and then I installed the python interpreter as VScode suggests. I was wondering which machine is the python interpreter installed. The remote machine or my local machine? I think it’s the remote one, but not 100% sure.
2
Answers
When you use VSCode to SSH into a remote machine and install a Python interpreter as suggested by VSCode, the interpreter is installed on the remote machine, not on your local machine. VSCode simply acts as an interface to interact with the remote environment.
If you performed the operation on a remote machine, it is installed on the remote machine.
You can also use the following code to output the path of the current interpreter.
More info: