pycharm 远程开发


1. 首先 服务器 本地 都 git clone 相同代码 

2.配置 pycharm 

  1. ctrl+shift+s  搜索 python interpreter ,点右边的小齿轮 
  2.  弹出框内点添加 SSH Interpreter 

  3.  选择服务器里面 的 python 版本 和 对应 项目的路径  

  4. 配置完点击确定  

  5. 然后在run 的时候 点击 配置  选择 python interpreter 就好啦