您的位置:首页 > 其它

ubuntu pip install 中遇到的问题

2018-02-03 12:22 330 查看

在安装pillow过程中遇到的问题

_imaging.c:76:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command ‘i686-linux-gnu-gcc’ failed with exit status 1

Command “/home/ubuntu/django_1/VENV_1/bin/python2.7 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-Ug0RLp/Pillow/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-93Wj3K-record/install-record.txt –single-version-externally-managed –compile –install-headers /home/ubuntu/django_1/VENV_1/include/site/python2.7/Pillow” failed with error code 1 in /tmp/pip-build-Ug0RLp/Pillow

上面是错误 ;

解决方案:

安装python-dev

sudo apt-get install python-dev
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: