vscode remote ssh python extension version mismatch

Viewed 42

I have two machines with VSCode installed.

  1. A linux machine (Comp1) that runs the latest version of VSCode and has the latest version of Python extension installed.
  2. A Windows machine (Comp2) that runs an older version of VSCode and has the older version of the Python extension.

I connect to a linux host using Remote SSH extension from both Comp1 and Comp2 to launch and run various python scripts and Jupyter notebooks. All of my python virtual envs are on the linux host and need them to run my scripts/notebooks. When I launch a Remote SSH session from Comp1, it installs the latest version of the Python extension on the remote host as well. If I then connect to the same host from Comp2 that has an older version of the Python extension, it fails to automatically detect the python virtual envs on my remote host until I remove and install a Python extension on the remote host that matches the one locally available on Comp2.

What is a solution for this issue? Can I simultaneously keep two versions of the Python extensions on the remote host, matching the versions for Comp1 and Comp2?

0 Answers
Related