# Running ios\_template on mac osx under virtualenv

**URL:** <https://forum.ansible.com/t/running-ios-template-on-mac-osx-under-virtualenv/22799>\
**Category:** Ansible Project\
**Created:** [October 16, 2016, 4:30am UTC](https://forum.ansible.com/t/running-ios-template-on-mac-osx-under-virtualenv/22799 "2016-10-16T04:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin\_Dean](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dustin\_Dean](https://forum.ansible.com/u/Dustin_Dean)\
**Post date:** [October 16, 2016, 4:30am UTC](https://forum.ansible.com/t/running-ios-template-on-mac-osx-under-virtualenv/22799/1 "2016-10-16T04:30:37Z")

</div>

Hello Everyone,

I am getting the following error below when I try to run the ios\_command module.

`  
fatal: [switch]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “paramiko is required but does not appear to be installed”}

`

Ive tried updating paramiko to the latest version and it still doesn’t work. I am running ansible on a macbook pro under virtualenv.

`

ansible (2.1.2.0)  
cffi (1.8.3)  
cryptography (1.5.2)  
enum34 (1.1.6)  
Glances (2.6.2)  
idna (2.1)  
ipaddress (1.0.17)  
Jinja2 (2.8)  
MarkupSafe (0.23)  
netaddr (0.7.18)  
netmiko (0.5.6)  
paramiko (2.0.2)  
pip (8.1.2)  
psutil (4.3.0)  
pyasn1 (0.1.9)  
pycparser (2.14)  
pycrypto (2.6.1)  
PyYAML (3.11)  
requests (2.11.1)  
scp (0.10.2)  
setuptools (28.5.0)  
six (1.10.0)  
speedtest-cli (0.3.4)  
virtualenv (15.0.3)  
wheel (0.30.0a0)

`

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [October 18, 2016, 3:10am UTC](https://forum.ansible.com/t/running-ios-template-on-mac-osx-under-virtualenv/22799/2 "2016-10-18T03:10:41Z")

</div>

You are most likely picking up the wrong Python interpreter. Add the following line to your inventory file:

[all:vars]  
ansible\_python\_interpreter=python
