【问题标题】:Failed to pip install regex in Ubuntu无法在 Ubuntu 中安装正则表达式
【发布时间】:2018-05-26 12:13:25
【问题描述】:

pip install regexUbuntu 18.04 服务器上失败,出现以下错误: 我已经安装了应该是重复的问题中提到的软件包。所以这不是重复的。

error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
'Failed building wheel for regex'

    error: command 'x86_64-linux-gnu-gcc' failed with exit status 4

    ----------------------------------------
Command "/home/rc/Env/rcasipe/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ti8hji_4/regex/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-i25nnqtk/install-record.txt --single-version-externally-managed --compile --install-headers /home/rc/Env/rcasipe/include/site/python3.6/regex" failed with error code 1 in /tmp/pip-install-ti8hji_4/regex/

你如何解决这个问题?谢谢。

【问题讨论】:

标签: python regex ubuntu gcc


【解决方案1】:

试试:pip3 install regex --user

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-02
    • 2011-09-19
    • 1970-01-01
    • 2015-07-07
    • 2018-09-20
    • 2016-09-26
    相关资源
    最近更新 更多