I am having 2 problems.
I am working on a remote server with vscode. When I use the command code to launch the vscode, it only launches it when I am not connected to the server. I searched for solutions online most of them are for windows and not mac, I could not find an answer that solves my problem.
problem2: how can I download a specific python interpreter in vscode.
I used this code to create a virtual environment:
virtualenv -p /usr/bin/python3 py3env
but it does not allow me to specify the version of the python interpreter.
You could install the
Remote-SSHextension for VSCode, it will allow you to connect to a remote server and have access to its files, you can install Remote-SSH from the VSCode MarketPlaceFor the second problem first download the version of python you want here https://www.python.org/downloads/mac-osx/, then just do
virtualenv -p /usr/bin/python3.7 py3envit will usepython 3.7in a virtual environment, for another version just replacepython 3.7in the command by the path of the appropriate python executable.