简体   繁体   English

在 conda 环境中的 Raspberry Pi 4 上安装 pandas 时出错

[英]Error installing pandas on Raspberry Pi 4 in conda environment

I am trying to install pandas in to my conda environment using conda install pandas but the install fails because pandas has a dependency of pytz and pytz requires a minimum conda version of 4.3.我正在尝试使用conda install pandas pandas 安装到我的 conda 环境中,但安装失败,因为 pandas 依赖于 pytz 和 3.pytz requires a minimum conda version of 4.3.

If I were running this on a normal Linux box I would just update my conda using 'conda update conda' and all would be sorted... However... the latest supported version of conda on a Rasperry Pi is 4.2.13 (using the rpi conda channel conda config --add channels rpi ).如果我在普通的 Linux 盒子上运行它,我将使用“conda update conda”更新我的 conda,所有内容都会被排序......但是...... Rasperry Pi 上最新支持的 conda 版本是 4.2.13(使用rpi conda channel conda config --add channels rpi )。

Help?帮助? Is it really not possible to use pandas in a conda environment on a Raspberry Pi 4B?!在树莓派 4B 的 conda 环境中真的不能使用 pandas 吗?!

To replicate the problem:要复制问题:

Raspberry Pi 4B, 8GB RAM with 64GB SD card)树莓派 4B,8GB RAM 和 64GB SD 卡)
OS: Raspbian Buster (10) ( lsb_release -irdc )操作系统:Raspbian Buster (10) ( lsb_release -irdc )
IDE: Spyder 4 IDE:蜘蛛 4
Python: 3.4.3 ( python --version ) Python:3.4.3( python --version
Virtual environment: Conda (Miniconda distribution)虚拟环境:Conda(Miniconda 发行版)
Conda version: 4.2.13 (linux-armv7l) ( conda info ) Conda 版本:4.2.13 (linux-armv7l) ( conda conda info )

Current conda environment ( conda list ):当前 conda 环境( conda list ):

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

Related questions:相关问题:
Out-dated answer to similar question (Berry Conda / RPI channel is no longer supported): Raspberry Pi-Python: Install Pandas on Python 3.5.2类似问题的过时答案(不再支持 Berry Conda / RPI 通道): Raspberry Pi-Python: Install Pandas on Python 3.5.2

Install old version of pandas and not in to a virtual env: https://raspberrypi.stackexchange.com/questions/17073/how-do-i-install-pandas-on-raspberry-pi安装旧版本的 pandas 而不是虚拟环境: https://raspberrypi.stackexchange.com/questions/17073/how-do-i-install-pandas-on-raspberry-pi

I ran in the exact same problem.我遇到了完全相同的问题。 The solution was to dump miniconda (python=3.4) and use virtualenv and pip (which uses the system version python 3.7).解决方案是转储 miniconda(python=3.4)并使用 virtualenv 和 pip(使用系统版本 python 3.7)。 Then all goes well.然后一切顺利。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM