python-3.x - 图书馆 yfinance 导致我无法解决的错误
问题描述
我试图用来yfinance
获取一些股票价格,但是我遇到了以下错误:
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "./stock.py", line 9, in <module>
import pandas as pd
File "/home/pi/.local/lib/python3.7/site-packages/pandas/__init__.py", line 17, in <module>
"Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "/usr/bin/python3"
* The NumPy version is: "1.21.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
我检查了我的 python 是 3.7 并且 numpy 是 1.21.1 我不确定我还能做什么
解决方案
推荐阅读
- android - 如何从数组编辑文本中获取字符串
- c++ - 为什么会出现分段错误
- javascript - 对 Spring Boot Endpoint 的 Ajax 请求读取 HTTP MSG 失败
- vba - 编辑自动转发的电子邮件以在开始时删除行
- javascript - 如何上传项目中但不属于 Firebase 存储输入的图像?
- ruby-on-rails - 如何使用 Nokogiri 将具有名称空间的节点树插入现有 XML 文件?
- java - 它是一个简单的 Java HashMap,如何在各个存储桶中添加元素
- spring-boot - 如何生成 Map 类型的 RequestBody
使用springdoc swagger open api 3.0? - vb.net - Win10程序上的VB .Net无法运行
- r - 使用具有多个条件的 if 语句替换数据帧中的因子时出现问题(R)