pip install regex
在Ubuntu 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/
你如何解决这个问题?感谢。
答案 0 :(得分:1)
尝试:pip3 install regex --user