|
[root@localhost yaml-0.1.5]# pip install pyyaml
Collecting pyyaml
Using cached PyYAML-3.12.tar.gz
Installing collected packages: pyyaml
Running setup.py install for pyyaml ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_ljXXW/pyyamltup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3DSGFN-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating buildb.linux-x86_64-2.7
creating buildb.linux-x86_64-2.7/yaml
copying lib/yaml/error.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/__init__.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/dumper.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/resolver.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/scanner.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/events.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/emitter.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yamlrializer.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/representer.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/constructor.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yamlaml.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/reader.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/parser.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/loader.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yamldes.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/composer.py -> buildb.linux-x86_64-2.7/yaml
copying lib/yaml/tokens.py -> buildb.linux-x86_64-2.7/yaml
running build_ext
creating build/temp.linux-x86_64-2.7
checking if libyaml is compilable
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7eck_libyaml.c -o build/temp.linux-x86_64-2.7eck_libyaml.o
checking if libyaml is linkable
gcc -pthread build/temp.linux-x86_64-2.7eck_libyaml.o -L/usrb64 -lyaml -o build/temp.linux-x86_64-2.7eck_libyaml
building '_yaml' extension
creating build/temp.linux-x86_64-2.7/ext
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
ext/_yaml.c:4:20: 致命错误:Python.h:没有那个文件或目录
#include "Python.h"
^
编译中断。
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_ljXXW/pyyamltup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3DSGFN-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-_ljXXW/pyyaml/
[root@localhost yaml-0.1.5]# |
|
|