首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法安装yfinance

无法安装yfinance
EN

Stack Overflow用户
提问于 2022-11-23 15:49:47
回答 1查看 80关注 0票数 1

包将不安装。在命令提示符中,我输入了'pip install yfinance‘

代码语言:javascript
运行
复制
      C:\Users\gam19\AppData\Local\Temp\xmlXPathInitw4g8q0z6.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x86\\cl.exe' failed with exit code 2
      *********************************************************************************
      Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
      *********************************************************************************
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> lxml

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
EN

回答 1

Stack Overflow用户

发布于 2022-12-03 22:49:26

您可以从https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml下载车轮并安装它(例如,pip安装lxl-4.9.0-cp311-cp311-winamd64.whl)。在那之后,尝试“pip install yfinance”可能会奏效。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74549570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档