Installing pexpect in python3



I am trying to install the python pexpect module into the python3 library but keep getting errors. I am new to Linux and could use some help please. I’ve attached a pic of what I tried and what the error is.


Try running the command with root privileges:

sudo pip3 install pexpect