Connecting to a remote interpreter when starting PyCharm

I have a remote interpreter configured in PyCharm.

Every time I close and reopen PyCharm, the connection seems to be broken, and the process of "reconnecting" the connection does not seem efficient to me.

Before doing the following, it is not possible to run any script.

Here's what I usually do:

  • File -> Settings
  • Project → Project Interpreter
  • Click on the gear icon on the right.
  • Select "More"
  • When selecting my remote interpreter, click Edit
  • Change "SSH Credentials" for "Deployment Configuration" (all information is already filled in)
  • Click "ok" several times to close everything.

At this point, I can run any scripts on the remote machine.

What's the best / fastest way to do this? (any way to "save settings"?)

+3


source to share


3 answers


Check the option "Visible for this project only" of the deployment configuration. This error occurs when the checkbox is checked.



+5


source


This was a bug in version 4.0.2 of PyCharm and was fixed in version 4.0.3.



Edit: Not true anymore. I tried with another computer and the latest version does not fix the problem.

+2


source


i meet the same error file->settings

checking the file->settings

interpreter,

You are not setting "host" and "message", or your set, but the content was clear. check again and it actually works

-1


source







All Articles