ReviewBoard pip安装失败

Justinas Jakavonis

我试图在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 "/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

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-84i3OO/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5lU4Yb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-84i3OO/Pillow/
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages        
/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning

有什么想法为什么会发生以及如何解决?

编辑

安装的枕头(https://discuss.erpnext.com/t/new-python-dependency-pillow-if-you-get-error-during-update-see-this-post/7900):

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

现在得到:

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

Command "/usr/bin/python -u -c 
"import setuptools, tokenize;__file__='/tmp/pip-build-hB90D2/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CCyW5e-record/install-record.txt --single-version-externally-managed --compile" 
failed with error code 1 in /tmp/pip-build-hB90D2/cffi/
Justinas Jakavonis

使用(https://discuss.erpnext.com/t/new-python-dependency-pillow-if-you-get-error-during-update-see-this-post/7900安装枕头

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

然后ccfi使用(无法通过PIP和setup.py安装Python密码软件包):

sudo apt-get install libffi-dev libssl-dev libpython2.7-dev
sudo pip install cryptography
sudo pip install cffi

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

ReviewBoard pip安装失败

来自分类Dev

ReviewBoard安装错误

来自分类Dev

Jaxlib pip安装失败

来自分类Dev

Dockerfile中的pip安装失败

来自分类Dev

python:pip安装xmltodict失败

来自分类Dev

树莓派上的pip安装失败

来自分类Dev

在ReviewBoard中处理多个SVN用户

来自分类Dev

尝试安装PIL,但pip安装PIL失败

来自分类Dev

在Ubuntu上使用pip安装NumPy失败

来自分类Dev

pip安装python3-memcached失败

来自分类Dev

pip安装gevent山狮失败

来自分类Dev

pip安装hyperopt和hyperas失败

来自分类Dev

在python2上pip安装失败

来自分类Dev

如何解决从pip安装pywfdb失败?

来自分类Dev

Python 3.6.2 pip3 安装失败

来自分类Dev

pip3 安装 virtualenv 失败

来自分类Dev

ReviewBoard:如何过滤掉标记为Ship It的评论?

来自分类Dev

使用 pip 下载中的 pkgs 安装 pip 失败

来自分类Dev

使用pip3安装NumPy失败,但是可以使用pip安装

来自分类Dev

Python2.7-在CentOS 6.3上pip安装pymssql失败

来自分类Dev

pip安装失败,出现FileNotFoundError:setup.py

来自分类Dev

用于scipy的PIP安装在Ubuntu 14.04上严重失败

来自分类Dev

在OSX上安装pip cffi软件包失败

来自分类Dev

通过pip安装pyinstaller导致“创建过程失败”

来自分类Dev

Python3 pip3在Ubuntu上安装失败

来自分类Dev

pip安装失败,并出现ImportError:无法导入名称'SourceDistribution'

来自分类Dev

Windows 10上的python 3.8中的PyCairo Pip安装失败

来自分类Dev

RASA pip安装失败:多个要求不兼容

来自分类Dev

即使安装了Chapel,Pip Install Arkouda也会失败