-
Install git. This can be done via typing
git
at a terminal and installing Xcode Developer Tools, or from git-scm.com -
Install the Homebrew Package Manager.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install
wget
with Homebrew.brew install wget
-
Install Python 3 via Homebrew. (Note: Python 3 is currently the default version provided by homebrew.)
brew install python
-
Install Python utilities.
# Retrieve pip installation script from web wget https://bootstrap.pypa.io/get-pip.py # Install pip into default Python installation sudo -H python get-pip.py # Install Virtual Environment with pip sudo -H python -m pip install virtualenv
-
Move to your working directory. (This is an example directory; use your local directory structure.)
cd ~/Code/cvd-config-templates
-
Setup a Python Virtual Environment.
virtualenv venv source venv/bin/activate
-
Create a requirements list.
echo 'ansible==2.4.2.0 ncclient==0.5.3 requests==2.18.4' > requirements.txt
-
Install Ansible requirements.
pip install -r requirements.txt