错误:无法为 lxml 构建轮子,这是安装基于 pyproject.toml 的项目所必需的

Joh*_*uez 4 python module python-3.x yfinance

我是 python 新手,我试图为我的 uni 类安装yfinance模块,但是在尝试安装它时我不断收到此错误...有人知道如何解决这个问题吗?在此输入图像描述

想要安装 yfinance 模块,因为当我尝试在 VS Code 中安装它时,出现以下错误: ModuleNotFoundError: No module named 'yfinance

Ama*_*don 7

在升级安装工具后,这个问题得到了解决。

pip install --upgrade setuptools

pip install lxml
Run Code Online (Sandbox Code Playgroud)

我使用的是 python 版本 3.8.16。希望这可以帮助。