首先是配置远程服务器

填写deployment

然后点箭头配置SSH

箭头指的都需要填写,最后点test connecting,测试是否成功链接
链接成功了点击箭头
设置同步的文件夹mapping映射

然后点击Browse remote host 可以看到服务器上的文件夹


2.配置服务器上的解释器
点击小齿轮

SSH方式链接远程服务器解释器

选第二种方式然后next


最后finish
3.在run的时候配置run参数,不能直接在文件右键run

服务器上文件的路径和Python版本要选对

最后可以在

run 运行debug了
其他的一些小问题:
1.在run过程中一种上传pycharm_helper文件的问题,可以在服务器上对应文件夹下找到对应build.txt文件 把本地pycharm的内部版本号加进去,但是还不能解决同时两个用户的版本号在一个文件中的问题。并删除,pycharm下skeletons文件夹。

2.尽量把本地所有解释器全删了,然后把本地anaconda拉到上传白名单,这样可以避免更少的每次运行都上传文件的问题。

暂时用户体验一般。。。pycharm远程服务器
网友评论