报错:
ssh://zu@10.37.31.160:22/home/zutnlp/anaconda3/envs/python36/bin/python3.6 -u D:/Projects/github/lightNLP/examples/test1.py
bash: line 0: cd: D:/Projects/github/lightNLP/examples: No such file or directory
/home/zutnlp/anaconda3/envs/python36/bin/python3.6: can't open file 'D:/Projects/github/lightNLP/examples/test1.py': [Errno 2] No such file or directory
Process finished with exit code 2
问题
1.选择正确的选择编译器,协议选择错误,应该选择ssh 协议,却错选了其他的协议。
2.mappings 配置错误,注意是相对路径
结果
发现是第一种错误配置好后,成功如下:

reference:https://stackoverflow.com/questions/47807709/pycharm-not-finding-anaconda-python-giving-cant-open-file-python-errno-2

本文解决了一个在使用PyCharm通过SSH远程运行Python脚本时遇到的问题,包括选择正确的编译器协议、mappings配置错误及相对路径问题。通过调整协议并正确配置mappings,成功解决了无法找到Anaconda Python环境及文件路径错误的问题。
4401

被折叠的 条评论
为什么被折叠?



