# installing ansbile - ImportError: No module named ansible.constants

**URL:** <https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474>\
**Category:** Ansible Project\
**Created:** [May 12, 2017, 4:59pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474 "2017-05-12T16:59:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan0618](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Post date:** [May 12, 2017, 4:59pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474/1 "2017-05-12T16:59:45Z")

</div>

I downloaded the ansible latest from

[https://releases.ansible.com/ansible/](https://releases.ansible.com/ansible/)

untarred and ran ansible, getting the below error

Traceback (most recent call last):  
File “./ansible”, line 43, in   
import ansible.constants as C

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 12, 2017, 5:19pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474/2 "2017-05-12T17:19:00Z")

</div>

did you source hacking/env-setup first?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 12, 2017, 5:20pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474/3 "2017-05-12T17:20:29Z")

</div>

You can’t just untar and run. If you want to run from source, you will need to following the instructions from [http://docs.ansible.com/ansible/intro\_installation.html#running-from-source](http://docs.ansible.com/ansible/intro_installation.html#running-from-source)

---

<div class="post-metadata">

**Author:** ![madhan0618](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Post date:** [May 12, 2017, 6:16pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474/4 "2017-05-12T18:16:35Z")

</div>

there is no hacking/env-setup

there are only these files under hacking dir

dump\_playbook\_attributes.py module\_formatter.py templates

---

<div class="post-metadata">

**Author:** ![madhan0618](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Post date:** [May 12, 2017, 6:17pm UTC](https://forum.ansible.com/t/installing-ansbile-importerror-no-module-named-ansible-constants/24474/5 "2017-05-12T18:17:40Z")

</div>

I dont want to run from source. I dont know which package in the releases is source and which is just binary.

please point me to a package that i need if i want to just untar and get going. thanks.
