June 2017
Intermediate to advanced
446 pages
10h 10m
English
The installation of the pip and pexpect packages is straightforward:
sudo apt-get install python-pipsudo apt-get install python3-pipsudo pip3 install pexpectsudo pip install pexpect
Do a quick to test to make sure the package is usable:
>>> import pexpect>>> dir(pexpect)['EOF', 'ExceptionPexpect', 'Expecter', 'PY3', 'TIMEOUT', '__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__revision__', '__spec__', '__version__', 'exceptions', 'expect', 'is_executable_file', 'pty_spawn', 'run', 'runu', 'searcher_re', 'searcher_string', 'spawn', ...
Read now
Unlock full access