美文网首页
readline command 'gcc' failed w

readline command 'gcc' failed w

作者: Joncc | 来源:发表于2020-11-16 11:23 被阅读0次

pip install readline 报错

    gcc: error: readline/libreadline.a: No such file or directory
    gcc: error: readline/libhistory.a: No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-LCgqS0/readline/setup.py'"'"'; __file__='"'"'/tmp/pip-install-LCgqS0/readline/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-E4ROUQ/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/readline Check the logs for full command output.

安装 patch readline-devel

yum -y install patch readline-devel

重新pip install readline安装成功

pip install readline
 
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting readline
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f4/01/2cf081af8d880b44939a5f1b446551a7f8d59eae414277fd0c303757ff1b/readline-6.2.4.1.tar.gz (2.3 MB)
Using legacy 'setup.py install' for readline, since package 'wheel' is not installed.
Installing collected packages: readline
    Running setup.py install for readline ... done
Successfully installed readline-6.2.4.1

相关文章

网友评论

      本文标题:readline command 'gcc' failed w

      本文链接:https://www.haomeiwen.com/subject/wehpbktx.html