Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/360.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
枕头包的Python Django夹层安装失败_Python_Django_Mezzanine_Pillow - Fatal编程技术网

枕头包的Python Django夹层安装失败

枕头包的Python Django夹层安装失败,python,django,mezzanine,pillow,Python,Django,Mezzanine,Pillow,我试着安装夹层 但它不能安装枕头 python setup.py安装返回以下错误: Processing Pillow-2.5.1.zip Writing /tmp/easy_install-5pOzTp/Pillow-2.5.1/setup.cfg Running Pillow-2.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5pOzTp/Pillow-2.5.1/egg-dist-tmp-E2JGiB warning: no

我试着安装夹层 但它不能安装枕头

python setup.py安装返回以下错误:

Processing Pillow-2.5.1.zip
Writing /tmp/easy_install-5pOzTp/Pillow-2.5.1/setup.cfg
Running Pillow-2.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5pOzTp/Pillow-2.5.1/egg-dist-tmp-E2JGiB
warning: no files found matching '*.bdf' under directory 'Images'
warning: no files found matching '*.fli' under directory 'Images'
warning: no files found matching '*.gif' under directory 'Images'
warning: no files found matching '*.icns' under directory 'Images'
warning: no files found matching '*.ico' under directory 'Images'
warning: no files found matching '*.jpg' under directory 'Images'
warning: no files found matching '*.pbm' under directory 'Images'
warning: no files found matching '*.pil' under directory 'Images'
warning: no files found matching '*.png' under directory 'Images'
warning: no files found matching '*.ppm' under directory 'Images'
warning: no files found matching '*.psd' under directory 'Images'
warning: no files found matching '*.tar' under directory 'Images'
warning: no files found matching '*.webp' under directory 'Images'
warning: no files found matching '*.xpm' under directory 'Images'
warning: no files found matching 'README' under directory 'Sane'
warning: no files found matching 'README' under directory 'Scripts'
warning: no files found matching '*.txt' under directory 'Tk'
Building using 4 processes
_imaging.c: In function ‘setup_module’:
_imaging.c:3575:37: error: ‘Z_RLE’ undeclared (first use in this function)
PyModule_AddIntConstant(m, "RLE", Z_RLE);
                                 ^
_imaging.c:3575:37: note: each undeclared identifier is reported only once for each     function it appears in
_imaging.c:3576:39: error: ‘Z_FIXED’ undeclared (first use in this function)
PyModule_AddIntConstant(m, "FIXED", Z_FIXED);
                                   ^
libImaging/Draw.c: In function ‘ImagingDrawWideLine’:
libImaging/Draw.c:603:9: warning: unused variable ‘vertices’ [-Wunused-variable]
 int vertices[4][2];
     ^
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/_imaging.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/decode.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/encode.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/map.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/display.o: File o directory non esistente
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Traceback (most recent call last):
File "/home/franco/.virtualenvs/audace/bin/pip", line 11, in <module>
sys.exit(main())
File "/home/franco/.virtualenvs/audace/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/home/franco/.virtualenvs/audace/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 28: ordinal not in range(128)
如果尝试使用pip install mezzanine进行安装,则会出现以下错误:

Processing Pillow-2.5.1.zip
Writing /tmp/easy_install-5pOzTp/Pillow-2.5.1/setup.cfg
Running Pillow-2.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5pOzTp/Pillow-2.5.1/egg-dist-tmp-E2JGiB
warning: no files found matching '*.bdf' under directory 'Images'
warning: no files found matching '*.fli' under directory 'Images'
warning: no files found matching '*.gif' under directory 'Images'
warning: no files found matching '*.icns' under directory 'Images'
warning: no files found matching '*.ico' under directory 'Images'
warning: no files found matching '*.jpg' under directory 'Images'
warning: no files found matching '*.pbm' under directory 'Images'
warning: no files found matching '*.pil' under directory 'Images'
warning: no files found matching '*.png' under directory 'Images'
warning: no files found matching '*.ppm' under directory 'Images'
warning: no files found matching '*.psd' under directory 'Images'
warning: no files found matching '*.tar' under directory 'Images'
warning: no files found matching '*.webp' under directory 'Images'
warning: no files found matching '*.xpm' under directory 'Images'
warning: no files found matching 'README' under directory 'Sane'
warning: no files found matching 'README' under directory 'Scripts'
warning: no files found matching '*.txt' under directory 'Tk'
Building using 4 processes
_imaging.c: In function ‘setup_module’:
_imaging.c:3575:37: error: ‘Z_RLE’ undeclared (first use in this function)
PyModule_AddIntConstant(m, "RLE", Z_RLE);
                                 ^
_imaging.c:3575:37: note: each undeclared identifier is reported only once for each     function it appears in
_imaging.c:3576:39: error: ‘Z_FIXED’ undeclared (first use in this function)
PyModule_AddIntConstant(m, "FIXED", Z_FIXED);
                                   ^
libImaging/Draw.c: In function ‘ImagingDrawWideLine’:
libImaging/Draw.c:603:9: warning: unused variable ‘vertices’ [-Wunused-variable]
 int vertices[4][2];
     ^
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/_imaging.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/decode.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/encode.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/map.o: File o directory non esistente
x86_64-linux-gnu-gcc: error: build/temp.linux-x86_64-2.7/display.o: File o directory non esistente
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Traceback (most recent call last):
File "/home/franco/.virtualenvs/audace/bin/pip", line 11, in <module>
sys.exit(main())
File "/home/franco/.virtualenvs/audace/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/home/franco/.virtualenvs/audace/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 28: ordinal not in range(128)
回溯(最近一次呼叫最后一次):
文件“/home/franco/.virtualenvs/audace/bin/pip”,第11行,在
sys.exit(main())
文件“/home/franco/.virtualenvs/audace/local/lib/python2.7/site packages/pip/_init__.py”,主文件第185行
return command.main(cmd_args)
文件“/home/franco/.virtualenvs/audace/local/lib/python2.7/site-packages/pip/basecommand.py”,第161行,主文件
text='\n'.连接(完成日志)
UnicodeDecodeError:“ascii”编解码器无法解码第28位的字节0xe2:序号不在范围内(128)
正如您所看到的,问题在于安装枕头的要求 我和virtualenv合作


谢谢

您需要安装开发库。对于Ubuntu,这意味着您需要执行以下操作:

sudo apt-get install python-dev build-essential 
sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
sudo apt-get build-dep python-imaging


此错误已修复,因此您可能希望运行
pip安装-U-piddle
,或
pip安装git+https://github.com/python-pillow/Pillow.git

您需要安装开发库。对于Ubuntu,这意味着您需要执行以下操作:

sudo apt-get install python-dev build-essential 
sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
sudo apt-get build-dep python-imaging


此错误已修复,因此您可能希望运行
pip安装-U-piddle
,或
pip安装git+https://github.com/python-pillow/Pillow.git

按照上述说明安装开发库。在第二个命令字符串中,删除第一个“libjpeg”,如下所示:

    sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

之后,安装枕头,您就完成了

按照上述说明安装开发库。在第二个命令字符串中,删除第一个“libjpeg”,如下所示:

    sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

之后,安装枕头,您就完成了

您使用的是哪个linux发行版?您使用的是哪个linux发行版?在安装开发库之后,我遇到了相同的错误。请更新您的问题,并将您在执行
pip-install-python-pillow
时得到的回溯放在后面。您已经有了build-dep-python-imaging
Scelto“pillow”来pacchetto-sorgente al-posto-di“python图像“0 aggiornati,0 installati,0 da rimuovere 9 non aggiornati.
我无法解决此问题。即使我使用
pip install-U pillow
pip install git,我也会出现同样的错误+https://github.com/python-pillow/Pillow.git
有什么建议吗?我删除所有,然后再次调用,但错误相同。也许我必须清理一些库,然后再试一次…在安装开发库之后,我遇到了同样的错误,请更新您的问题,并将您在执行
pip-install-pill
时得到的回溯放回。您已经拥有build dep python imaging
Scelto“pillow”come pacchetto sorgente al-posto di“python imaging”0 aggiornati,0 installati,0 da rimuovere 9 non aggiornati。
我无法解决此问题。即使我使用
pip install-U pillow
pip install git,我也会出现同样的错误+https://github.com/python-pillow/Pillow.git
有什么建议吗?我删除所有,然后再次调用,但错误相同。也许我必须清理一些图书馆,然后再试一次。。。