在ubuntu上安装枕头失败14.04
问题描述:
我试着在我的ubuntu 14.04上安装枕头,我收到以下错误信息。 我应该使用easy_install进行安装吗?因为我听说这个点不起作用。有什么建议吗? 还是有我需要安装运行我安装了所有的软件包的命令在ubuntu上安装枕头失败14.04
pip install pillow
running egg_info
writing dependency_links to Pillow.egg-info/dependency_links.txt
writing requirements to Pillow.egg-info/requires.txt
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files found matching '.travis/*'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'build_children.sh'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file 'Pillow.egg-info/SOURCES.txt'
running build_ext
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/media/mohit/mohit1/1.8/matchmaker/build/pillow/setup.py", line 756, in <module>
raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
答
之前,我得到了错误
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
那我就命令
sudo apt-get install gcc python-dev
然后我得到结果
Successfully installed pillow olefile
什么是olefile?它适用于在Django中使用?
+0
是的,可以使用django – Exprator
答
试试这个,
sudo apt-get install libjpeg-dev
答
根据Wikipedia枕包装为蟒蛇弼和在Ubuntu 13.04及更高版本python3-PIL。
要在Ubuntu 14.04安装Python图像库后,打开终端,输入:
sudo apt-get install python-pil # for python 2.X
和/或...
sudo apt-get install python3-pil # for python 3.X
运行此命令,如果imageTk进口没有按't work:
sudo apt-get install python3-pil.imagetk # for Python 2.X replace `python3-` with `python-`
我认为错误是关于zlib库未安装 sudo apt-get install zlib1g-dev –
安装以下网址中描述的所有依赖关系:https://pillow.readthedocs.io/en/latest/installation.html – Zartch
我做过了,但出现错误 错误:command'x86_64-linux -gnu-gcc'失败,退出状态1 – Raghu