Installing Python telnetlib module

15,501

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

Share:
15,501
J. Doe
Author by

J. Doe

Updated on June 04, 2022

Comments

  • J. Doe
    J. Doe almost 2 years

    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.

  • J. Doe
    J. Doe over 8 years
    Thank you! I'm new to python and that answer helped me a LOT! :D