惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

博客园 - 狼人:-)

KMS 激活服务,slmgr 命令激活 Windows 系统、Office 老大爷都在养龙虾了!小白3分钟本地装 OpenClaw + 飞书打通全攻略(零基础必看) OpenClaw 飞书频道配置指南 vmware嵌套安装esxi7.0.3扩容vmfs Github 学生认证保姆级教程 WordPress 前端显示英文,后台显示中文的设置 Linux 系统备份恢复工具 SYSTEM-RESCUE-CD 的使用sysrcd Cloudflare中的“托管质询”、“JavaScript质询“、”交互式质询”区别 如何使用FlareSolverr来抓取Cloudflare网站 绕过TLS:akamai指纹护盾 bagisto nginx配置 Bagisto电商系统在生产环境解决http未转https错误 wordpress woocommerce api 设置product_brand win10的大BUG,C盘显示剩余容量2G,原来是hiberfil.sys文件引起的 Windows Server 2022英文版改中文版后,Asp.net的时区与系统设置的时区不一致,设置如下 CentOS7 磁盘挂载操作 Python 关于requests 关闭连接,优化内存 The Paste(Wordpress编辑器粘贴即上传插件) Wordpress安装Elementor后无法使用,需安装插件:Flexible SSL for CloudFlare(解决https循环重定向) Wifi密码获取
Python3安装gevent报gcc错误 转载
狼人:-) · 2024-11-28 · via 博客园 - 狼人:-)

转载自: https://blog.csdn.net/jiyixi_tao/article/details/127748667

python3 安装gevent报错 GCC error, 按照网上大哥们的指导把,配套的库全部安装一遍后,问题依然没有解决,但是这个些如果没有安装的还是需要进行下安装:

yum install libevent-devel

yum install python devel

yum install python-gevent

我的操作系统是centos7.6 于是尝试升级了下pip3到最新版本,然后进行gevent的安装就成功了:

python3 -m pip install --upgrade pip

pip3 install gevent==1.4.0

src/greenlet/greenlet_refs.hpp:179:19: warning: inline function ‘T* greenlet::refs::PyObjectPointer<T, <anonymous> >::borrow() const [with T = _greenlet; void (* TC)(void*) = greenlet::refs::GreenletChecker]’ used but never defined [enabled by default]
inline T* borrow() const G_NOEXCEPT
^
error: command ‘gcc’ failed with exit status 1

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-4fy1i1hg/greenlet/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-i_ykhstc-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-4fy1i1hg/greenlet/
[root@mongo_server01 tools]# python3 -m pip install --upgrade pip
WARNING: Running pip install with root privileges is generally not a good idea. Try __main__.py install --user instead.
Collecting pip
Downloading  https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB)
100% |████████████████████████████████| 1.7MB 675kB/s
Installing collected packages: pip
Successfully installed pip-21.3.1
You are using pip version 21.3.1, however version 22.3.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
[root@mongo_server01 tools]# pip3 install gevent1.4.0
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see  https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip’ instead of running pip directly.
Collecting gevent1.4.0
Using cached gevent-1.4.0-cp36-cp36m-manylinux1_x86_64.whl (5.5 MB)
Collecting greenlet>=0.4.14
Downloading greenlet-2.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (513 kB)
|████████████████████████████████| 513 kB 1.0 MB/s
Installing collected packages: greenlet, gevent
Successfully installed gevent-1.4.0 greenlet-2.0.1
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead:  https://pip.pypa.io/warnings/venv
[root@mongo_server01 tools]# pip3 list
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see  https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip’ instead of running pip directly.
Package Version


gevent 1.4.0
greenlet 2.0.1
logger 1.4
numpy 1.19.5
pip 21.3.1
psutil 5.8.0
setuptools 39.2.0
zope.event 4.5.0
zope.interface 5.5.1
[root@mongo_server01 tools]#
————————————————
版权声明:本文为CSDN博主「rex-tao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接: https://blog.csdn.net/jiyixi_tao/article/details/127748667