Error python-jinja2 is needed by ansible
Error python-jinja2 is needed by ansible
Got the above error while installing Ansible on my Fedora 32 server. Do the below steps to install python-jinja2 dependency.
1. You must log into your Fedora server as ‘root’ user
2. Install python-jinja2 using dnf command
OR
3. dnf will install python-jinja2 and the below required dependencies
python3-babel
python3-markupsafe
python3-pytz
4. Enter ‘y’ and press enter, if dnf ask for confirmation while installing
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
python3-jinja2 noarch 2.11.2-1.fc32 updates 490 k
Installing dependencies:
python3-babel noarch 2.8.0-2.fc32 fedora 5.7 M
python3-markupsafe x86_64 1.1.1-5.fc32 fedora 32 k
python3-pytz noarch 2020.1-1.fc32 updates 49 k
python3-setuptools noarch 41.6.0-2.fc32 fedora 588 k
Transaction Summary
===================================================================================================
Install 5 Packages
Total download size: 6.8 M
Installed size: 32 M
Is this ok [y/N]: y
How to download and Install python-jinja2 rpm
1. Log into Fedora 32 server as ‘root’ user
2. Download python-jinja2 package from rpmfind.net website using wget command
3. Install python3-jinja2 using rpm command or yum command
You must install the below dependencies before installing python3-jinja2 rpm.
python3-babel
python3-markupsafe
python3-pytz
Installing the downloaded rpm file using yum command:
yum will install python3-jinja2 and the required dependencies for the package. You must manually install the dependencies, if you are using rpm command to install.