# apt-get install python-pip python-dev # pip install ansible
安装python-dev是为了下面下载ansible源码,编译源码安装的依赖。python