# Can setup.py copy modules to a location other than /usr/share/ansible?

**URL:** <https://forum.ansible.com/t/can-setup-py-copy-modules-to-a-location-other-than-usr-share-ansible/12304>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [February 7, 2013, 3:51pm UTC](https://forum.ansible.com/t/can-setup-py-copy-modules-to-a-location-other-than-usr-share-ansible/12304 "2013-02-07T15:51:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yves\_Dorfsman](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@Yves\_Dorfsman](https://forum.ansible.com/u/Yves_Dorfsman)\
**Post date:** [February 7, 2013, 3:51pm UTC](https://forum.ansible.com/t/can-setup-py-copy-modules-to-a-location-other-than-usr-share-ansible/12304/1 "2013-02-07T15:51:43Z")

</div>

Can you convince your sysadmin to install the 3 or 4 requirements on your system (python-yaml, python-paramiko, and python-jinja2)?

If you do, then you do not need to run setup.py. Running the following should be sufficient:

export ANSIBLE\_HOSTS=/a/b/c/ansible\_hosts  
. ansible/hacking/env-setup

Note that one site I use ansible at, I use it as an apps user, not as root.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 7, 2013, 3:53pm UTC](https://forum.ansible.com/t/can-setup-py-copy-modules-to-a-location-other-than-usr-share-ansible/12304/2 "2013-02-07T15:53:08Z")

</div>

You can also install \*those\* modules in virtualenv.
