Python 映射路径don';t工作,运行脚本ssh解释器pychram
我有AWS,正在使用pychram ssh部署连接到服务器。Python 映射路径don';t工作,运行脚本ssh解释器pychram,python,amazon-web-services,ssh,pycharm,Python,Amazon Web Services,Ssh,Pycharm,我有AWS,正在使用pychram ssh部署连接到服务器。 当我运行脚本时(使用右键单击->运行,ctrl+shift+F10),我得到了以下错误 ssh://user@xxx.xx.x.xx:22/data/anaconda/bin/python /home/user/.pycharm_helpers/pydev/pydev_run_in_console.py 0 0 C:/WC/trunk/content_dna/src/predict_hidden_layer.py global
当我运行脚本时(使用右键单击->运行,
ctrl+shift+F10
),我得到了以下错误
ssh://user@xxx.xx.x.xx:22/data/anaconda/bin/python /home/user/.pycharm_helpers/pydev/pydev_run_in_console.py 0 0 C:/WC/trunk/content_dna/src/predict_hidden_layer.py
globals = run_file(file, None, None)
File "/home/user/.pycharm_helpers/pydev/pydev_run_in_console.py", line 35, in run_file
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/user/.pycharm_helpers/pydev/_pydev_imps/_pydev_execfile.py", line 11, in execfile
stream = tokenize.open(file) # @UndefinedVariable
File "/data/anaconda/lib/python3.5/tokenize.py", line 454, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:/WC/trunk/content_dna/src/predict_hidden_layer.py'
Process finished with exit code 1
但是如果我更改工作目录并将运行/调试配置脚本设置为\home\user\PycharmProjects\content\u dna\src
\home\user\PycharmProjects\content\u dna\src\get\imdb\u keyword.py
脚本运行得很好 我希望它是自动的,我尝试在三个位置添加路径映射:
现在奇怪的是,如果我尝试使用Debug(右键单击->调试或
Shift+F9
),根本就没有问题 您是否勾选了选项:之后显示命令行?我也有类似的问题。但在取消选中此选项后,我的问题解决了。我知道未标记的“之后显示命令行”解决了问题,但我需要此选项。我在中开了一个问题,你可以在这个问题上投票。