我正在尝试使用 conda install pandas
将 pandas 安装到我的 conda 环境中,但安装失败,因为 pandas 依赖于 pytz,而 pytz 需要最低 conda 版本 4.3。
如果我在普通的 Linux 机器上运行它,我只需使用“conda update conda”更新我的 conda,所有内容都会被排序...但是...Rasperry Pi 上最新支持的 conda 版本是 4.2。 13(使用 rpi conda channel conda config --addchannels rpi
)。
救命啊!难道真的不能在Raspberry Pi 4B上的conda环境中使用pandas吗?!
要重现问题:
Raspberry Pi 4B, 8GB RAM with 64GB SD card)
OS: Raspbian Buster (10) (lsb_release -irdc
)
IDE: Spyder 4
Python: 3.4.3 (python --version
)
Virtual environment: Conda (Miniconda distribution)
Conda version: 4.2.13 (linux-armv7l) (conda info
)
当前 conda 环境(conda 列表
):
conda 4.2.13
conda-env 2.6.0
ncurses 6.1
openssl 1.0.1k
pip 20.1.1
psycosat 0.6.1
pycrpto 2.6.1
python 3.4.3
pyyaml 3.11
readline 7.0
requests 2.7.0
ruamel_yaml 0.11.14
setuptools 18.1
SQLite 3.24.0
wheel 0.34.2
xz 5.0.5
yaml 0.1.7
zlib 1.1.11
相关问题:
类似问题的过时答案(不再支持 Berry Conda/RPI channel ):Raspberry Pi-Python: Install Pandas on Python 3.5.2
安装旧版本的 pandas 而不是虚拟环境:https://raspberrypi.stackexchange.com/questions/17073/how-do-i-install-pandas-on-raspberry-pi
最佳答案
我遇到了完全相同的问题。解决方案是转储 miniconda (python=3.4) 并使用 virtualenv 和 pip (使用系统版本 python 3.7)。然后一切顺利。
关于python - conda环境下在Raspberry Pi 4上安装pandas时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62851795/