the daemon
the daemon

Reputation: 11

Why does import readline() fail

What I've tried:

    Python 3.7 (64-bit) interactive window [PTVS 15.7.18156.1-15.0]
    Type `$help` for a list of commands.
    >>> import readline
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'readline'
    >>> 

Why am I getting this error?

Upvotes: 1

Views: 2143

Answers (1)

blhsing
blhsing

Reputation: 106936

As @eryksun helpfully pointed out in the comments (which have since been removed), the readline package is not bundled with Python for Windows. You have to install pyreadline instead using pip in the command line:

pip install pyreadline

Upvotes: 1

Related Questions