pycharm遠程連接服務器編譯錯誤: No such file or directory

報錯:

ssh://[email protected]: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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章