How To Install python-virtualenv-api on CentOS 7

In this tutorial we learn how to install python-virtualenv-api on CentOS 7. python-virtualenv-api is An API for virtualenv/pip

Introduction

In this tutorial we learn how to install python-virtualenv-api on CentOS 7.

What is python-virtualenv-api

virtualenv-api - an API for virtualenv Tool to create isolated Python environments. Unfortunately, it does not expose a native Python API. This package aims to provide an API in the form of a wrapper around virtualenv.

We can use yum or dnf to install python-virtualenv-api on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-virtualenv-api.

Install python-virtualenv-api on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python-virtualenv-api using yum by running the following command:

sudo yum -y install python-virtualenv-api

Install python-virtualenv-api on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python-virtualenv-api using dnf by running the following command:

sudo dnf -y install python-virtualenv-api

How To Uninstall python-virtualenv-api on CentOS 7

To uninstall only the python-virtualenv-api package we can use the following command:

sudo dnf remove python-virtualenv-api

References

Summary

In this tutorial we learn how to install python-virtualenv-api on CentOS 7 using yum and dnf.