# pip install ansible on Ubuntu 12.04

**URL:** <https://forum.ansible.com/t/pip-install-ansible-on-ubuntu-12-04/15199>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 8, 2014, 9:00pm UTC](https://forum.ansible.com/t/pip-install-ansible-on-ubuntu-12-04/15199 "2014-05-08T21:00:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jharrod\_LaFon](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jharrod\_LaFon](https://forum.ansible.com/u/Jharrod_LaFon)\
**Post date:** [May 8, 2014, 9:00pm UTC](https://forum.ansible.com/t/pip-install-ansible-on-ubuntu-12-04/15199/1 "2014-05-08T21:00:33Z")

</div>

Hello,

I’ve recently attempted to upgrade my servers from Ansible 1.5.3 to 1.6.1, and I’ve noticed that the installation requirements have changed.

I used to be able to bootstrap a machine with a fresh install of Ubuntu 12.04 server to run Ansible by installing the Python dependencies like this:

$ apt-get install python-pip python-paramiko python-yaml python-jinja2 python-simplejson

$ pip install ansible==1.5.3

This no longer works, because Ansible now requires a C compiler:

$ pip install ansible==1.6.1

…

configure: error: no acceptable C compiler found in $PATH

The failure seems to arise from introducing a dependency on pycrypto in this commit: [https://github.com/ansible/ansible/commit/0fefab66514ac10acaed754793df3106fca4c4a8](https://github.com/ansible/ansible/commit/0fefab66514ac10acaed754793df3106fca4c4a8)

Will there be no option to install Ansible without installing gcc?

Thanks,

-Jharrod

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [May 8, 2014, 9:51pm UTC](https://forum.ansible.com/t/pip-install-ansible-on-ubuntu-12-04/15199/2 "2014-05-08T21:51:35Z")

</div>

The only other way to get around that dependency would be to install pycrytpo/keyczar via your package management system.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 9, 2014, 11:51pm UTC](https://forum.ansible.com/t/pip-install-ansible-on-ubuntu-12-04/15199/3 "2014-05-09T23:51:16Z")

</div>

The introduction of setuptools here actually solves another problem – that on Enterprise Linux the pycrypto is too old.

To fix this, the AWESOME folks at the Fedora project packaged a newer pycrypto for EPEL, and this code allows that to be slurped in.

So, yes, you’ll need to “apt-get install gcc” or equivalent.

C is good for you, though, so I wouldn’t worry about it. C is for Cookie. Cookie Cookie Cookie starts with C.
