Error no module named curses

后端 未结 5 1997
感动是毒
感动是毒 2021-01-04 07:53

When I try to run the following code...

from telnetsrvlib import *

if __name__ == \'__main__\':
\"Testing - Accept a single connection\"
class TNS(SocketSer         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 08:02

    inspired by @YKB, I did this for Ubuntu 16.04 and Python3.5.2,

    sudo apt-get install libncurses5-dev,

    and then go to source code of Python, and make, two new files are created.

    _curses.cpython-35m-x86_64-linux-gnu.so
    _curses_panel.cpython-35m-x86_64-linux-gnu.so
    

    And then copy them to lib-dynload folder at where you installed your python.

提交回复
热议问题