Python 检查面板pip安装故障
我试图在14.04.1-Ubuntu上安装ReviewBoard,我得到以下错误。我使用了以下命令:Python 检查面板pip安装故障,python,installation,pip,apt-get,review-board,Python,Installation,Pip,Apt Get,Review Board,我试图在14.04.1-Ubuntu上安装ReviewBoard,我得到以下错误。我使用了以下命令: sudo apt-get install python-setuptools python-dev memcached patch libjpeg-dev sudo pip install -U pip sudo easy_install pip sudo apt-get install python-mysqldb sudo pip install ReviewBoard File "/us
sudo apt-get install python-setuptools python-dev memcached patch libjpeg-dev
sudo pip install -U pip
sudo easy_install pip
sudo apt-get install python-mysqldb
sudo pip install ReviewBoard
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run self.build_extensions()
File "/tmp/pip-build-84i3OO/Pillow/setup.py", line 512, in build_extensions' using --disable-%s, aborting' % (f, f))
ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting
有没有什么想法,为什么会发生这种情况,以及如何解决 编辑 安装枕头(): 现在得到:
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 - Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/l ibffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2 .7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
使用()安装枕头:
然后ccfi使用():
您是否已尝试安装
libffi-devel
apt-get install libffi-dev
有时为了解决pip问题,安装build-essential
和python-dev
apt-get install python-dev && apt-get install build-essential
祝你好运 要在CentOS 7上运行Python 2.7 Fabric 1.13,我必须先安装openssl-devel 完全错误:
#include <openssl/opensslv.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2hTQUe/cryptography/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-mqFBbh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2hTQUe/cryptography/
谢谢这帮助我安装了couchapp python工具,还帮助我安装了
sudo pip install rdbtools python lzf
。
sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
sudo pip install pillow
sudo apt-get install libffi-dev libssl-dev libpython2.7-dev
sudo pip install cryptography
sudo pip install cffi
apt-get install libffi-dev
apt-get install python-dev && apt-get install build-essential
#include <openssl/opensslv.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2hTQUe/cryptography/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-mqFBbh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2hTQUe/cryptography/
sudo yum install -y gcc make openssl openssl-devel
sudo pip install fabric