# Pip Module Broken for pip 1.5

**URL:** <https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260>\
**Category:** Ansible Project\
**Created:** [January 3, 2014, 6:04pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260 "2014-01-03T18:04:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Ferrante](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Matt\_Ferrante](https://forum.ansible.com/u/Matt_Ferrante)\
**Post date:** [January 3, 2014, 6:04pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260/1 "2014-01-03T18:04:51Z")

</div>

Pip 1.5, released on 1/1/2014, doesn’t support --use-mirrors. The default should be use\_mirrors=no, as this should work correctly with all versions. I ran into the issue where we use Ansible to easy\_install pip and then use pip to install python libraries.

I created a pull request: [https://github.com/ansible/ansible/pull/5493](https://github.com/ansible/ansible/pull/5493)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 3, 2014, 6:06pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260/2 "2014-01-03T18:06:48Z")

</div>

Changing the default seems like an bad design choice as it may break existing users.

Question:

(A) if they are removing the option, does it _ALWAYS_ use mirrors then?

(B) can we test the pip version and then raise an error if the option is used in a way it cannot support?

---

<div class="post-metadata">

**Author:** ![Matt\_Ferrante](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Matt\_Ferrante](https://forum.ansible.com/u/Matt_Ferrante)\
**Post date:** [January 3, 2014, 6:12pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260/3 "2014-01-03T18:12:08Z")

</div>

The default won’t be supported in new versions. I doubt people will run into this right away, as they already have pip installed, but it will probably become more common as time goes on, so it may make more sense in a future version.

A - Mirroring support was removed in pip 1.5, so it NEVER uses mirrors.B - That’s possible, I’ll update the pull request.

---

<div class="post-metadata">

**Author:** ![Matt\_Ferrante](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@Matt\_Ferrante](https://forum.ansible.com/u/Matt_Ferrante)\
**Post date:** [January 3, 2014, 7:11pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260/4 "2014-01-03T19:11:45Z")

</div>

Made a new pull request: [https://github.com/ansible/ansible/pull/5494](https://github.com/ansible/ansible/pull/5494)

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 3, 2014, 10:58pm UTC](https://forum.ansible.com/t/pip-module-broken-for-pip-1-5/14260/5 "2014-01-03T22:58:14Z")

</div>

Hi all,

See what we decided to do here with regards to version checking:

[https://github.com/ansible/ansible/commit/191be7b951eb8c34b73b367334e0cb4343af0779](https://github.com/ansible/ansible/commit/191be7b951eb8c34b73b367334e0cb4343af0779)

I’ll add the note that this flag is ignored on newer versions of pip.
