# pip install fails on Cento5.10

**URL:** <https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304>\
**Category:** Ansible Project\
**Created:** [May 22, 2014, 1:16pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304 "2014-05-22T13:16:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Maas](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Mark\_Maas](https://forum.ansible.com/u/Mark_Maas)\
**Post date:** [May 22, 2014, 1:16pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304/1 "2014-05-22T13:16:23Z")

</div>

Dear All,

I’m unable to install ansible via pip on Centos 5.10:

> Using version 0.11 (newest of versions: 0.11, 0.10, 0.9, 0.8, 0.7, 0.6)  
> Downloading from URL [https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz#md5=8ef586fe4dbb156697d756900cb41d7c](https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.11.tar.gz#md5=8ef586fe4dbb156697d756900cb41d7c) (from [https://pypi.python.org/simple/ecdsa/](https://pypi.python.org/simple/ecdsa/))  
> Running setup.py egg\_info for package ecdsa  
> Traceback (most recent call last):  
> File “”, line 14, in ?  
> File “/root/build/ecdsa/setup.py”, line 5, in ?  
> from ecdsa.six import print\_  
> File “ecdsa/ **init**.py”, line 3  
> from .keys import SigningKey, VerifyingKey, BadSignatureError, BadDigestError  
> ^  
> SyntaxError: invalid syntax  
> Complete output from command python setup.py egg\_info:  
> Traceback (most recent call last):
> 
> File “”, line 14, in ?
> 
> File “/root/build/ecdsa/setup.py”, line 5, in ?
> 
> from ecdsa.six import print\_
> 
> File “ecdsa/ **init**.py”, line 3
> 
> from .keys import SigningKey, VerifyingKey, BadSignatureError, BadDigestError
> 
> ^
> 
> SyntaxError: invalid syntax

Usually I have some idea on what to investigate next, but in this case. I’m stumped…

Mark

---

<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 22, 2014, 3:49pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304/2 "2014-05-22T15:49:16Z")

</div>

Hrm yes, that seems to be broken because of a dependency issue. You can try and install a slightly older version of the ecdsa library first, to see if that gets you around the issue?

---

<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 23, 2014, 12:26pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304/3 "2014-05-23T12:26:46Z")

</div>

The more correct answer here is Ansible on the control machine requires python 2.6 or higher.

The remote machines only need python 2.4 or higher.

---

<div class="post-metadata">

**Author:** ![PS1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@PS1](https://forum.ansible.com/u/PS1)\
**Post date:** [September 5, 2014, 8:22pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304/4 "2014-09-05T20:22:07Z")

</div>

Mark,

Were you able to install ansible? I am seeing the same error message and my python version is 2.7.2. I am installing on CentOS 5.6.

---

<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:** [September 5, 2014, 9:21pm UTC](https://forum.ansible.com/t/pip-install-fails-on-cento5-10/15304/5 "2014-09-05T21:21:03Z")

</div>

Ansible does _NOT_ support running on CentOS 5.X as a control machine.

It will manage them as guests.

I would highly recommend installing on 6.X, a Fedora, Ubuntu, or a Mac, as good/easy alternatives.

The reason for this is python 2.6 is on the control machine - you can do this if you know what you are doing, but we can’t really spend too much time helping with it, especially when problems are reported.
