Connecting to remote interpreter when starting PyCharm

10,754

Solution 1

Check option "Visible only for this project" of deployment configuration. This error occurs when the check mark is set.

https://www.jetbrains.com/help/pycharm/2018.3/deployment-connection-tab.html

if this checkbox is selected in an SFTP configuration, you cannot use its SSH credentials for configuring a remote interpreter.

Solution 2

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

Edit: No longer true. I tried with another computer and having the most recent version doesn't fix the problem.

Share:
10,754
Gabriel L'Heureux
Author by

Gabriel L'Heureux

Updated on June 09, 2022

Comments

  • Gabriel L'Heureux
    Gabriel L'Heureux almost 2 years

    I have a remote interpreter set up in PyCharm.

    Everytime I close and reopen PyCharm, the connection seems to be broken, and the process to "reopen" the connection doesn't feel efficient to me.

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

    Here is what I usually do:

    1. File -­> Settings
    2. Project -> Project Interpreter
    3. Click on the gear icon on the right.
    4. Choose "More"
    5. With my remote interpreter selected, click on "Edit"
    6. Change "SSH Credentials" for "Deployment Configuration" (all the info is already filled)
    7. Click "ok" multiple times to close everything up.

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

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

  • DasDany
    DasDany over 7 years
    This helped for me. Thanks.
  • Anders_K
    Anders_K almost 6 years
    I have the box unchecked and the problem still occurs for me