为什么我不能在树莓派中导入pandas?

问题描述 投票:0回答:1

在树莓派中导入 pandas 时显示此错误 将 pandas 导入为 pd 回溯(最近一次调用最后一次): 文件“”,第 1 行,位于 文件“/home/jinu/scale/hx711py/env/lib/python3.9/site-packages/pandas/init.py”,第 19 行,位于 引发导入错误( 导入错误:无法导入所需的依赖项: numpy:导入 numpy 时出错:您不应尝试从以下位置导入 numpy: 它的源目录;请退出 numpy 源代码树,然后重新启动 你的Python解释器就在那里。

所有依赖项均已安装

python pandas raspberry-pi
1个回答
0
投票

这应该适用于 Raspberry Pi。

sudo apt install python-pandas
© www.soinside.com 2019 - 2024. All rights reserved.