Search code examples
pythonmoduleinstallation

Installing Python telnetlib module


I'm trying to install a python module named telnetlib on my Ubuntu 15.4 OS.

I tried:

$ pip install telnetlib

but I get errors:

root@c-Peppy:~# pip install telnetlib
Collecting telnetlib
Could not find a version that satisfies the requirement telnetlib (from  versions: )
No matching distribution found for telnetlib
root@c-Peppy:~# 

I tried installing telnetlib as well as telnetlib3 but all give me the same results.

Here is the python documentation for telnetlib: https://docs.python.org/2/library/telnetlib.html

Any help on how to install that module will be highly appreciated.


Solution

  • Given that telnetlib is a library, you don't need to install the module as long as you have python. You can just do import telnetlib

    from either the python interpreter or your python program.

    In general, if its in the docs.python.org library, it's built into python. If you are trying to install something with pip and having issues, try searching on pypi.python.org to see if the name is slightly different than you'd expect