Friday, 31 July 2020

python: how to use pexpect without installing

We can use the pexpect without installing, below is the best way to use:

  1. Downloaded Pexpect 2.4 ( https://pypi.org/project/pexpect/2.4/#files).
    • We tested on python 2.7.10 version, need to check in latest python version, not sure this will work on latest.
    • Also seems not support in latest pexpect version because latest version doesn't have pexpect.py file iteself. so best use pexpect 2.4 version. 
       2. Place pexpect.py next to my script
       3. import pexpect in my script.


It will work.

No comments:

Post a Comment