• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

Error python-jinja2 is needed by ansible

Linux/16 May, 20/703/0
Linux

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
 

# dnf install python-jinja2

 
OR
 

# sudo dnf install python-jinja2

 
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
 

# dnf install python-jinja2

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
 

# wget https://rpmfind.net/linux/fedora/linux/releases/32/Everything/x86_64/os/Packages/p/python3-jinja2-2.11.1-1.fc32.noarch.rpm

 
3. Install python3-jinja2 using rpm command or yum command
 

# rpm -ivh python3-jinja2-2.11.1-1.fc32.noarch.rpm

 
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 install python3-jinja2-2.11.1-1.fc32.noarch.rpm

 
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.

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright