# import ansible.constants as C ImportError: No module named ansible.constants

**URL:** <https://forum.ansible.com/t/import-ansible-constants-as-c-importerror-no-module-named-ansible-constants/24839>\
**Category:** Ansible Project\
**Created:** [June 28, 2017, 12:00pm UTC](https://forum.ansible.com/t/import-ansible-constants-as-c-importerror-no-module-named-ansible-constants/24839 "2017-06-28T12:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tilak\_mishra](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@tilak\_mishra](https://forum.ansible.com/u/tilak_mishra)\
**Post date:** [June 28, 2017, 12:00pm UTC](https://forum.ansible.com/t/import-ansible-constants-as-c-importerror-no-module-named-ansible-constants/24839/1 "2017-06-28T12:00:35Z")

</div>

Hello Experts,

**Background :** Installing Ansible on a Host which is not connected to Internet. It’s running on SUSE Linux Enterprise Server 11 SP4

- Already Installed Python version: Python 2.6.9

- Installed Python 2.7 from [https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz](https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz)

Created symbolic link:

Python 2.7.12 (default, Jun 27 2017, 23:46:35)  
[GCC 4.3.4 [gcc-4\_3-branch revision 152973]] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > >

- Downloaded Ansible 2.3.1 from below link

[http://download.opensuse.org/repositories/home:/garloff:/OTC/SLE\_11\_SP4/x86\_64/ansible-2.3.1.0-73.1.x86\_64.rpm](http://download.opensuse.org/repositories/home:/garloff:/OTC/SLE_11_SP4/x86_64/ansible-2.3.1.0-73.1.x86_64.rpm).

I can see ansible libraries been deployed into /usr/lib64/python2.6/site-packages/ansible and/etc/ansible

But when i do # ansible , below error shows up. Am not sure what’s missing and how to fix this?

Traceback (most recent call last):  
File “/usr/bin/ansible”, line 43, in   
import ansible.constants as C  
ImportError: No module named ansible.constants  
CVMLNX0038:/usr/lib64/python2.6/site-packages/a

Please help? Thanls.
