Centos system version of Linux installs gevent module error: error: command'gcc' failed with exit status 1

1. Error content

Insert picture description here

Solution:

method 1:

I found some methods (but not applicable to me):

yum install libevent-devel
yum install python devel
yum install python-gevent

Install the gevent module after installation, but mine failed.

Method 2:

I feel that the latest version may not be my centos system, because my centos is 7.2 and python is 3.6.
historic version

Insert picture description here
Here I chose version 1.4.0, and the latest version will be installed by default.

pip3 install gevent==1.4.0

Then the installation was successful.

Guess you like

Origin blog.csdn.net/weixin_42081389/article/details/105554510