pycharm远程调试 No such file or directory

pycharm远程调试 No such file or directory

在用远程调试的时候,报错:

ssh:@******:22/home/anaconda3/envs/python36/bin/python3.6 -u D:/Projects/train.py
bash: line 0: cd: D:/Projects/***: No such file or directory
/home/anaconda3/envs/python36/bin/python3.6: can't open file D:/Projects/***/train.py': [Errno 2] No such file or directory

Process finished with exit code 2

问题

  • 发现是在解释器下面的SSH没有配置,配置之后,得到解决。
  • 也有可能是mappings 配置错误,路径应该是相对路径
    在这里插入图片描述

解决

对问题1进行完善后,程序可以运行起来了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/ganxiwu9686/article/details/109289026