Installing pexpect in python3

terminal
python

#1

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.


#2

Try running the command with root privileges:

sudo pip3 install pexpect