pycharm远程连接服务器运行代码加调试

2021-10-27  本文已影响0人  一个摸鱼AI喵

一、配置

  1. File -> Settings -> Project:XX -> Project Interpreter。

  2. 点击小齿轮->Add. 选择SSH Interpreter.填写Host跟Username

  3. Host: 192.168.46.230
    Username: root
    
  4. 然后输入Password

  5. 选择python环境Interpreter

    /root/anaconda3/envs/human-matting/bin/python3.8
    
  6. 设置映射文件位置 Running code on theremote server

    Sync folders:本地:服务器

也可以添加后在Tools-Deployment-Configuration-进行设置映射

  1. 设置自动上传


    image-20211019110514087.png
上一篇 下一篇

猜你喜欢

热点阅读