pip install flagai时出现Collecting PyYAML==5.4.1 (from flagai)等错误信息的解决方案

  大家好,我是爱编程的喵喵。双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中。从事机器学习以及相关的前后端开发工作。曾在阿里云、科大讯飞、CCF等比赛获得多次Top名次。现为CSDN博客专家、人工智能领域优质创作者。喜欢通过博客创作的方式对所学的知识进行总结与归纳,不仅形成深入且独到的理解,而且能够帮助新手快速入门。

  本文主要介绍了pip install flagai时出现Collecting PyYAML==5.4.1 (from flagai)等错误信息的解决方案,希望能对学习Python的同学们有所帮助。

1. 问题描述

  今天在使用pip命令安装flagai时,却出现了Collecting PyYAML==5.4.1 (from flagai)、Getting requirements to build wheel … error和 AttributeError: cython_sources的错误提示,具体安装命令和截图如下所示:

pip install flagai

在这里插入图片描述
  在经过

(.venv) PS D:\trans> pip install pyyaml==5.4.1 Collecting pyyaml==5.4.1 Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [61 lines of output] C:\Users\Anthea Laffey\AppData\Local\Temp\pip-build-env-emnzahqc\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running egg_info writing lib3\PyYAML.egg-info\PKG-INFO writing dependency_links to lib3\PyYAML.egg-info\dependency_links.txt writing top-level names to lib3\PyYAML.egg-info\top_level.txt Traceback (most recent call last): File "D:\trans\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "D:\trans\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "D:\trans\.venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 143, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\Anthea Laffey\AppData\Local\Temp\pip-build-env-emnzahqc\overlay\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wh
03-27
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

爱编程的喵喵

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值