ImportError: No module named pxssh

前端 未结 3 1540
情歌与酒
情歌与酒 2021-02-19 19:12

I am trying to use pxssh module to make SSH connection to the client - however I am getting

ImportError: No module named pxssh

I

相关标签:
3条回答
  • 2021-02-19 19:33

    If the problem is not resolved by the earlier suggestion:

    from pexpect import pxssh
    

    The pexpect library might be outdated, so run:

     sudo pip install pexpect --upgrade
    
    0 讨论(0)
  • 2021-02-19 19:43

    If /usr/lib/python2.7/site-packages/pexpect/pxssh.py exists, then use the below command

    python2.7 'yourprogram.py'

    as python command is not linked to 2.7 version. Please check python -V to get the version.

    0 讨论(0)
  • 2021-02-19 19:44

    Well, try from pexpect import pxssh.

    update:


    The solution only works for Linux as pxssh is not supported on Windows

    0 讨论(0)
提交回复
热议问题