记录pip安装时报的错


Table of Contents

Pillow

ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting

    ----------------------------------------
Command "/home/***/***/venv/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-k9djbrwk/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-i_zr9z4a-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/***/***/venv/include/site/python3.4/Pillow" failed with error code 1 in /tmp/pip-build-k9djbrwk/Pillow

解决办法:

# yum install libjpeg-turbo-devel

其实这个办法也不太准确, 参考 pillow文档 ,安装

$ sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel

misaka

error: Setup script exited with error: command ‘gcc’ failed with exit status 1

我使用

pip3 install misaka

报错

error: Setup script exited with error: command ‘gcc’ failed with exit status 1,

google 搜了半天,结果都是 python-devel 没装,实际上我的已经装上了, 我以为是因为我自己编译安装的python3没有安装python3-devel,又搜了半天,什么也没搜到, 后来心血来潮使用

easy_install misaka

不用多说,还是报错,但是报错原因成了 No package 'libffi' found ,好吧, yum list libffi\*之后,发现libffi已安装,但是libffi-devel未安装,

yum install libffi-devel

试一试,结果。。。成功了

psycopg2

psycopg2安装之前需要安装 postgresql-devel ,此外,正确的安装方式是

PATH=$PATH:/usr/pgsql-9.3/bin/ pip install psycopg2

/注意postgresql目录/

pysqlite

报错信息

dialects/sqlite/pysqlite.py", line 339, in dbapi
raise e
werkzeug.utils.ImportStringError: import_string() failed for 'config'. Possible reasons are:

- missing __init__.py in a package;
- package or module path not included in sys.path;
- duplicated package or module name taking precedence in sys.path;
- missing module, class, function or variable;

Debugged import:

- 'config' not found.

Original exception:

ImportError: No module named pysqlite2

pip install pysqlite

  src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory
     #include "sqlite3.h"
                         ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/exingcai/.Envs/iotschedule/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aT3yRf/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1MtibC-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/exingcai/.Envs/iotschedule/include/site/python2.7/pysqlite" failed with error code 1 in /tmp/pip-build-aT3yRf/pysqlite/

解决办法:

sudo yum install sqlite-devel
Author: honmaple

NO CONTENTS

lin.jiang

风落花语风落天,花落风雨花落田.