# Can't install ansible properly with pip and devel branch

**URL:** <https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778>\
**Category:** Ansible Project\
**Created:** [September 9, 2020, 3:22pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778 "2020-09-09T15:22:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [September 9, 2020, 3:22pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/1 "2020-09-09T15:22:52Z")

</div>

I am using:

sudo pip install git+https://github.com/ansible/ansible@devel

pip install git+https://github.com/ansible/ansible@devel --user

to install ansible. I have uninstalled any previous versions. I am using python 3.8.

After installation is complete, I do not have the “ansible”, “ansible-playbook”, etc commands. In the past, pip installation would also provide me with those. As a workaround I am using ansible from a local git checkout and sourcing ansible/hacking/env-setup every time I start work.

What could be wrong?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [September 9, 2020, 3:31pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/2 "2020-09-09T15:31:09Z")

</div>

Hi,

> I am using:
> 
> sudo pip install git+[https://github.com/ansible/ansible@devel](https://github.com/ansible/ansible@devel)
> 
> pip install git+[https://github.com/ansible/ansible@devel](https://github.com/ansible/ansible@devel) --user
> 
> to install ansible. I have uninstalled any previous versions. I am  
> using python 3.8.

have you installed previous versions \*before\* installing ansible-base  
from git? (The ansible/ansible repository no longer contains ansible,  
but ansible-base.)

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [September 9, 2020, 3:36pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/3 "2020-09-09T15:36:57Z")

</div>

In the past, yes I had, also from the devel branch using pip.

At one point, I decided to update and re-installed ansible using pip from the devel branch. I got weird errors, searched, found out I had to remove previous version, I uninstalled everything and then re-installed the devel branch.

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [September 9, 2020, 3:46pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/4 "2020-09-09T15:46:02Z")

</div>

Can it be that ansible-lint breaks it?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [September 9, 2020, 3:50pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/5 "2020-09-09T15:50:12Z")

</div>

Hi,

> Can it be that ansible-lint breaks it?

that's very likely, since it has a dependency on ansible, which right  
now means ansible 2.9. The situation will get better once Ansible 2.10.0  
is released (i.e. later this month).

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [September 9, 2020, 3:52pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/6 "2020-09-09T15:52:23Z")

</div>

Will installing ansible-lint from its development branch help?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [September 9, 2020, 3:58pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/7 "2020-09-09T15:58:49Z")

</div>

Hi,

> Will installing ansible-lint from its development branch help?

probably not, since it requires ansible \>= 2.8:  
[https://github.com/ansible/ansible-lint/blob/master/setup.cfg#L73](https://github.com/ansible/ansible-lint/blob/master/setup.cfg#L73)

If you install the other dependencies manually and install it without  
automatically installing dependencies, it should work though.

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [September 9, 2020, 4:10pm UTC](https://forum.ansible.com/t/cant-install-ansible-properly-with-pip-and-devel-branch/33778/8 "2020-09-09T16:10:50Z")

</div>

OK thanks a lot!
