- Linux ansible controller machine requires python module "Pywinrm"to control windows hosts machines.
- Usually python packages are installed using PIP(pip Installs Packages or pip Installs python or preferred installer program),which is python package manager.
- Pip module ships with python 2(2.7.9+) and 3(3.4+) by default
- But RedHat Linux machines default python version is 2.7.5, so it did not contain pip,we need to download it.
First method:From the EPEL repo,
$yum install python-pip
Note:This downloads pip for python 2,this is recommended practice if RedHat machine contains python 2 2 by default.
Second Method:Install Pip with Curl and Python
Step 1. Download the package from the official repository using the curl command:
$curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
Step 2. Then, install Pip with:
$sudo python get-pip.py
Step 3. Next, verify the installation:
$pip -V
Reference here
- After installing pip pywinrm can be installed using below simple cmd
0 Comments