[英]pycharm Error running 'remodel': Can't run remote python interpreter: Can't get remote credentials for deployment server Copy of project-level
[英]Pycharm Can't run remote python interpreter error
我有一個 aws ec2 實例,我想通過 pycharm 訪問和工作,但我無法正確配置對遠程終端的訪問。 我做的步驟是:
4)繼續設置 I select 解釋器,如路徑 usr/bin/python 中標識的解釋器和項目目錄 I select 我的項目目錄在 home/ubuntu/MyProject
這是我設置遠程解釋器后看到的
所有連接測試均已成功通過,但是當我運行代碼時出現此錯誤
Error running 'main': Can't run remote python interpreter: Error connecting to remote host
那么我該如何解決這個問題呢?
最后我找到了一個解決方案,默認情況下 pycharm 為解釋器設置路徑 usr/bin/python 但正確的是 usr/bin/python3,現在一切正常
我有同樣的錯誤,但原因不同:運行配置中的 docker 卷綁定之一指向不存在的主機目錄
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.