Ipython no readline available and pip install readline error

前端 未结 3 476
甜味超标
甜味超标 2020-12-29 01:41

I installed ipython but it doesn\'t have the readline option. I first downloaded gnu readline and compiled and installed. DIdn\'t know whether it was a proper solution but w

相关标签:
3条回答
  • 2020-12-29 02:13

    I had the same issue with my Ubuntu 14.04 install trying to get some python libraries installed. iPython I believe requires readline which was failing for me until I ran the following commands.

    sudo apt-get install python-dev
    sudo apt-get install libncurses5-dev
    sudo pip install readline
    
    0 讨论(0)
  • 2020-12-29 02:16

    tmaric is right. I had the same problem while installing iPython (Ubuntu 12.10, quantal, 32-bit). I was missing the dev version of the ncurses5 library. Try:

    sudo apt-get install libncurses5-dev
    

    and then installing the readline module again through pip

    pip install readline
    
    0 讨论(0)
  • 2020-12-29 02:21

    You have a linker error: library ncurses is not installed, or it is installed and the linker is searching for the wrong object file.

    What platform/operating system are you using?

    If you're running Linux/Unix, try:

    locate libncurses
    

    to see if the library is installed. If there are no libncurses*.{o,so,so.[0-9].[0-9]} files on your system, just install the library, and the readline. If there are some, then check which one is searched for by the readline compilation process, it could be that you just have to make a symbolic link, naming the library file properly.

    0 讨论(0)
提交回复
热议问题