Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install readline via python pip




readline - The standard Python readline extension statically linked against the GNU readline library., it belongs to Classifiers:

- Environment :: Console
- Intended Audience :: End Users/Desktop
- License :: OSI Approved :: GNU General Public License (GPL)
- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: POSIX
- Programming Language :: C

When you know about this project and you want to new install readline to support your project or you get trouble as ModuleNotFoundError: No module named "readline" or ImportError: cannot import name "readline" in your project, let follow this tutorial to install readline



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_readline_env

- Active the virtual environment

test_readline_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_readline_env

- Active the virtual environment

source test_readline_env/bin/active


Step 2: OK, now, let flow below content to start the installation readline

To install readline on Windows(CMD):

py -m pip install readline

To install readline on Unix/macOs:

pip install readline


Step 3: If you want to install a specific readline version, add ==<readline version> to the end command line

Example:

pip install readline==2.4.2


Please see the version list below table:

VersionReleased dateCommand
readline 6.2.4.12012-10-22T16:27:04Windows:

py -m pip install readline==6.2.4.1

Unix/macOs:

pip install readline==6.2.4.1

readline 6.2.42012-10-17T14:27:39Windows:

py -m pip install readline==6.2.4

Unix/macOs:

pip install readline==6.2.4

readline 6.2.22012-02-24T11:49:06Windows:

py -m pip install readline==6.2.2

Unix/macOs:

pip install readline==6.2.2

readline 6.2.12011-09-01T08:14:39Windows:

py -m pip install readline==6.2.1

Unix/macOs:

pip install readline==6.2.1

readline 6.2.02011-06-02T12:58:38Windows:

py -m pip install readline==6.2.0

Unix/macOs:

pip install readline==6.2.0

readline 6.1.02010-09-20T21:21:35Windows:

py -m pip install readline==6.1.0

Unix/macOs:

pip install readline==6.1.0

readline 2.6.42009-11-24T16:59:18Windows:

py -m pip install readline==2.6.4

Unix/macOs:

pip install readline==2.6.4

readline 2.6.12009-11-18T16:51:11Windows:

py -m pip install readline==2.6.1

Unix/macOs:

pip install readline==2.6.1

readline 2.5.12008-05-27T10:04:36Windows:

py -m pip install readline==2.5.1

Unix/macOs:

pip install readline==2.5.1

readline 2.4.22005-12-26T04:08:56Windows:

py -m pip install readline==2.4.2

Unix/macOs:

pip install readline==2.4.2


Step 4: Otherwise, you can install readline from local archives:

Download the distribution file from readline-6.2.4.1.tar.gz or the specific readline version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_readline_downloaded_file>

On Unix/macOs:

pip install <path_to_readline_downloaded_file>


List distribution:


Project link:

- Homepage