python安装ruamel.yaml报错

在尝试使用pip3安装ruamel.yaml模块时遇到了错误,报错信息提到gcc和ruamel.yaml.clib的依赖问题。解决方法是在CentOS7系统中安装gcc和musl-dev,然后重新尝试安装ruamel.yaml,问题得到解决。
摘要由CSDN通过智能技术生成

python3安装ruamel.yaml模块时报错

[root@test ]# pip3 install ruamel.yaml
Collecting ruamel.yaml
  Downloading ruamel.yaml-0.17.20-py3-none-any.whl (109 kB)
Collecting ruamel.yaml.clib>=0.2.6; platform_python_implementation == "CPython" and python_version < "3.11"
  Downloading ruamel.yaml.clib-0.2.6.tar.gz (180 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-91vjgeeu/ruamel.yaml.clib/setup.py'"'"'; __file__='"'"'/tmp/pipn'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tm
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值