How to organize work on a remote server with different versions of Python
There is a remote server (Debian) with projects with different versions of Python. The following issues need to be resolved:
How to configure Pycharm environment so that changes in code on local machine are exported to server?
Projects will use different versions of Python. This issue is addressed through the 'Pyenv' library. Installing different versions of Python for projects. The problem is the following case:
- "I am working on a project that requires the Python 3.6 version. The path to the required Python version is assigned to the interpreter in Pycharm. Then I switch to another project that requires version 3.8. And the path to the version 3.6 is specified in the interpreter.
How can I make sure that the Python version of the Pycharm-e interpreter changes automatically to the Python version in the project as soon as I switch to the required project in the terminal?
Translated with www.DeepL.com/Translator (free version)
Please sign in to leave a comment.
Try setting up SSH interpreter: https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html#
You can configure multiple SSH interpreters, each pointing to the respective python executable. Interpreter settings are per-project.