Pillow
1ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
2
3 ----------------------------------------
4Command "/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
解决办法:
1# yum install libjpeg-turbo-devel
其实这个办法也不太准确, 参考 pillow文档 ,安装
1$ sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-devel tcl-devel tk-devel
misaka
1error: Setup script exited with error: command ‘gcc’ failed with exit status 1
我使用
1pip3 install misaka
报错
1error: Setup script exited with error: command ‘gcc’ failed with exit status 1,
上 google 搜了半天,结果都是 python-devel 没装,实际上我的已经装上了, 我以为是因为我自己编译安装的python3没有安装python3-devel,又搜了半天,什么也没搜到, 后来心血来潮使用
1easy_install misaka
不用多说,还是报错,但是报错原因成了 No package 'libffi' found ,好吧, yum list libffi*之后,发现libffi已安装,但是libffi-devel未安装,
1yum install libffi-devel
试一试,结果。。。成功了
psycopg2
psycopg2安装之前需要安装 postgresql-devel ,此外,正确的安装方式是
1PATH=$PATH:/usr/pgsql-9.3/bin/ pip install psycopg2
注意postgresql目录
pysqlite
报错信息
1dialects/sqlite/pysqlite.py", line 339, in dbapi
2raise e
3werkzeug.utils.ImportStringError: import_string() failed for 'config'. Possible reasons are:
4
5- missing __init__.py in a package;
6- package or module path not included in sys.path;
7- duplicated package or module name taking precedence in sys.path;
8- missing module, class, function or variable;
9
10Debugged import:
11
12- 'config' not found.
13
14Original exception:
15
16ImportError: No module named pysqlite2
pip install pysqlite
1 src/connection.h:33:21: fatal error: sqlite3.h: No such file or directory
2 #include "sqlite3.h"
3 ^
4 compilation terminated.
5 error: command 'gcc' failed with exit status 1
6
7 ----------------------------------------
8Command "/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/
解决办法:
1sudo yum install sqlite-devel
知识共享署名-非商业性使用-相同方式共享4.0国际许可协议