首页 > 解决方案 > 在 Google Colab 上安装 beam 时如何修复错误

问题描述

我开始学习梁,发现谷歌 colab 是一个很好的起点(根据我正在学习的课程),但是,第一件事是在 Colab 中安装梁,当我尝试这样做时它会抛出一些错误:

!{'pip3 install --quiet apache_beam'}

ERROR: pydrive 1.3.1 has requirement oauth2client>=4.0.0, but you'll have oauth2client 3.0.0 which is incompatible. 
ERROR: chainer 6.5.0 has requirement typing<=3.6.6, but you'll have typing 3.7.4.1 which is incompatible. 
ERROR: chainer 6.5.0 has requirement typing-extensions<=3.6.6, but you'll have typing-extensions 3.7.4.1 which is incompatible. 
ERROR: albumentations 0.1.12 has requirement imgaug<0.2.7,>=0.2.5, but you'll have imgaug 0.2.9 which is incompatible.

在此处输入图像描述

顺便说一句,python 版本是 3.6.9

标签: apache-beamgoogle-colaboratory

解决方案


对于这里的未来读者,以下命令目前对我有用:

!pip install apache-beam[gcp]
import apache_beam as beam

推荐阅读