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.

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

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
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