我正在尝试在Ubuntu 14.x(一个AWS实例)上安装Ansible控制服务器。
当试图安装依赖关系时,我看到一个错误。 我不知道我需要做什么。 这是一个可以忽略的错误?
这是我input的内容:
pip install paramiko PyYAML Jinja2 httplib2
这是我最后看到的:
Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-0JTKy4-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pycrypto Storing debug log for failure in /root/.pip/pip.log
我去了/root/.pip/pip.log。 我看到了这个:
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x8 6_64-2.7/src/MD2.o 1149 1150 src/MD2.c:31:20: fatal error: Python.h: No such file or directory 1151 1152 #include "Python.h" 1153 1154 ^ 1155 1156 compilation terminated. 1157 1158 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我该怎么办?