ipython complaining about readline

后端 未结 4 1113
时光取名叫无心
时光取名叫无心 2020-12-13 10:08

When I install ipython on my osx and run it, I get the following warning:

 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
 site-packages/I         


        
4条回答
  •  再見小時候
    2020-12-13 11:05

    I am also using brew installed ipython and I had a similar issue.

    ⚡ easy_install-3.7 -a readline
    Searching for readline
    Reading https://pypi.org/simple/readline/
    Download error on https://pypi.org/simple/readline/: unknown url type: https -- Some packages may not be found!
    Couldn't find index page for 'readline' (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.org/simple/
    Download error on https://pypi.org/simple/: unknown url type: https -- Some packages may not be found!
    No local packages or working download links found for readline
    error: Could not find suitable distribution for Requirement.parse('readline') (--always-copy skips system and development eggs)
    

    Solution:

    ⚡ brew install readline
    Updating Homebrew...
    Warning: readline 7.0.5 is already installed, it's just not linked
    You can use `brew link readline` to link this version.
    ⚡ brew link readline
    Warning: readline is keg-only and must be linked with --force
    ⚡ brew link readline --force
    Linking /usr/local/Cellar/readline/7.0.5... 16 symlinks created
    

    Result:

    ⚡ ipython
    Python 3.7.2 (default, Dec 27 2018, 07:35:06)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
    >>> ~/.pyrc loaded successfully
    

提交回复
热议问题