How do i install Ansible using virtualenv

0 votes
How do I install Ansible using virtualenv?
Jan 10 in Ansible by Anurag

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Depends on which environment you need to install. 

For Mac:

sudo easy_install pip
sudo pip install --upgrade pip
pip install virtualenv
answered Jan 10 by Mohit
0 votes

Adding to @Mohit's answer, 

For CentOS and RHEL:

sudo yum install python-virtualenv

For ubuntu:

sudo apt install python-virtualenv

Once you've installed you create a virtual environment

virtualenv myansible
source myansible/bin/activate

Now install ansible

pip install ansible

answered Jan 10 by Dikinson

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I update CentOS using Ansible?

You can use the yum module in the ...READ MORE

answered Feb 4 in Ansible by Diana
0 votes
1 answer

How do I install Ansible on Ubuntu?

Hey Kiara, Execute the following commands to Install ...READ MORE

answered Feb 20 in Ansible by Kunal
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How do I access environment variables in Ansible?

Yes @Nagray, you're right! You can access ...READ MORE

answered Jan 24 in Ansible by Tessie
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.