ubuntu pip install 中遇到的问题
2018-02-03 12:22
330 查看
在安装pillow过程中遇到的问题
_imaging.c:76:20: fatal error: Python.h: No such file or directorycompilation 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相关文章推荐
- ubuntu安装pip+python27+ipython+scrapy+zlib+libssl-dev-及遇到的各种问题解决
- python下安装easy_install、pip遇到的问题
- ubuntu用apt-get install 安装软件遇到的问题
- Windows在pip install tensorflow遇到的问题 一些python安装包的时候,超时问题以及权限问题
- ubuntu-pip+python27+ipython-安装-及遇到的各种问题解决
- Ubuntu 14.04-64bit安装pip遇到的问题及tensorflow的安装
- ubuntu安装pip+python27+ipython+scrapy+zlib-及遇到的各种问题解决
- Ubuntu pip安装tensorflow遇到的问题
- ubuntu下pip install的问题
- pip install遇到编码问题
- ubuntu sudo apt-get install时遇到问题E: Sub-process /usr/bin/dpkg returned an error code (1)
- ubuntu安装pip+python27+ipython+scrapy+zlib-及遇到的各种问题解决
- Ubuntu 下安装Git时遇到的问题 - You might want to run 'apt-get -f install' to correct these
- Ubuntu下pip工具安装遇到的问题
- ubuntu 安装anaconda不能正常使用pip的问题,以及conda install error 和 Error: Missing write permissions in:的问题
- nrpe 在ubuntu上安装遇到的问题
- Ubuntu遇到依赖问题
- 笔记:记录ubuntu install python3.6 and pip3
- Ubuntu14.04 PostgreSQL卸载又重装后遇到的问题及解决方法
- Ubuntu学习(应用集合、命令行以及遇到的问题)