apache-beam - 在 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
解决方案
对于这里的未来读者,以下命令目前对我有用:
!pip install apache-beam[gcp]
import apache_beam as beam
推荐阅读
- c# - 如何在 C# 中向 OBS 发送录制命令?
- python - 关于调色板、图形透明度和 x 轴密度的一些基本 Matplotlib 问题
- python - 如何使用 Maplotlib 更改绘图的比例并添加增量?
- c++ - boost text 序列化版本(15 vs 18)
- c# - ModelState.IsValid 为假但应该为真
- python - Google Colab 上熊猫的 ANSI 编码?
- java - 如何将 Web 驱动程序实例传递给另一个类的方法
- javascript - 一堆单选按钮,并希望在其中一个上启用切换
- ios - 动画立即结束并且不运行 UIView.animate
- timeout - Expect 下的超时命令未按预期工作