python3.5安装ujson出错

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

执行结果:

python3.5安装ujson出错_第1张图片

再运行:

sudo pip3 install ujson

python3.5安装ujson出错_第2张图片

OK!

你可能感兴趣的:(自然语言处理)