I am trying to use Pexpect for a python script I am writing with python 3. I tried installing the module on commmand prompt with admin privileges by using the pip install command:
pip install Pexpect
Once the module finished installing I opened IDLE and in it and tried importing the module:
import pexpect
which gave the error:
Traceback (most recent call last): File "", line 1, in import pexpect ImportError: No module named 'pexpect'
The problem is python cant see the imported module even after its installation.How can i prevent this from happening?