pip3 install ujson 出现以下错误:
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-09v8v0cn/ujson/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-o8yufg29-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-09v8v0cn/ujson/
解决办法:
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev
执行结果:
再运行:
sudo pip3 install ujson
OK!