pycharm ssh interpter No such file or directory

后端 未结 5 722
萌比男神i
萌比男神i 2021-01-30 05:32

I am using a macbook pro 15 as local machine and I have a remote server running ubuntu 14.04

I want to use the remote intepreter to run all the computation but I want t

5条回答
  •  野性不改
    2021-01-30 06:07

    I'm running PyCharm 2018.3

    The Problem:

    First, I didn't have the [Errno 2] No such file or directory problem. Then I had the problem out of nowhere.

    The issue arose when I did:

    • Preferences -> Project: {project_name} -> Project Interpreter
    • Instead of "Click on cog icon and select Add Remote", I chose a interpreter that I've configured previously (that is working fine previously) from the drop down menu

    By doing the steps above, I had [Errno 2] No such file or directory problem.

    The reason is that the folder is not automatically synced to the remote server (a bug?), nor could I find a way to configure it to sync. Configuring Deployment and Path Mappings did work, but it's too much manual labor and prone to error.

    The solution:

    All I had to do is to add a new remote interpreter, despite that identical configurations already exists previously. (To be safe, I did remove the old ssh interpreter and the old deployments, also removed .idea folder) Then everything worked as expected.

    • I didn't need to configure Deployment
    • I didn't need to configure Paths mappings

提交回复
热议问题