Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 映射路径don';t工作,运行脚本ssh解释器pychram_Python_Amazon Web Services_Ssh_Pycharm - Fatal编程技术网

Python 映射路径don';t工作,运行脚本ssh解释器pychram

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

我有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
    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

脚本运行得很好

我希望它是自动的,我尝试在三个位置添加路径映射:

  • 设置->项目解释器->编辑项目路径映射(三点,仅在远程解释器中可用)
  • 运行->编辑配置->默认->Python->路径映射
  • 工具->部署->配置->映射

  • 现在奇怪的是,如果我尝试使用Debug(右键单击->调试或
    Shift+F9
    ),根本就没有问题

    您是否勾选了选项:之后显示命令行?我也有类似的问题。但在取消选中此选项后,我的问题解决了。

    我知道未标记的“之后显示命令行”解决了问题,但我需要此选项。我在中开了一个问题,你可以在这个问题上投票。