How To Install python-gevent on CentOS 7
Introduction
In this tutorial we learn how to install python-gevent
on CentOS 7.
What is python-gevent
gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. Features include * convenient API around greenlets * familiar synchronization primitives (gevent.event, gevent.queue) * socket module that cooperates * WSGI server on top of libevent-http * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate
We can use yum
or dnf
to install python-gevent
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-gevent.
Install python-gevent 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-gevent
using yum
by running the following command:
sudo yum -y install python-gevent
Install python-gevent 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-gevent
using dnf
by running the following command:
sudo dnf -y install python-gevent
How To Uninstall python-gevent on CentOS 7
To uninstall only the python-gevent
package we can use the following command:
sudo dnf remove python-gevent
References
Summary
In this tutorial we learn how to install python-gevent
on CentOS 7 using yum
and dnf
.