pip 搜索显示 apache-beam 2.9 但 pip install apache-beam 只安装 apache-beam2.2
pip search showed apache-beam 2.9 but pip install apache-beam only get apache-beam2.2 installed
在我全新的虚拟环境中。
我运行
pip search apache-beam
我得到了
apache-beam (2.9.0)
那我运行
pip install apache-beam
pip list
但是我安装了 apache-beam 2.2,而不是 2.9
apache-beam 2.2.0
然后我运行
python -m apache_beam.examples.wordcount --output cout
我收到错误
The Apache Beam SDK for Python is supported only on Python 2.7.
来自这份文件
https://towardsdatascience.com/hands-on-apache-beam-building-data-pipelines-in-python-6548898b66a5
beam 2.9 将支持 python3。但是通过 pip search 我找到了 apache-beam 2.9。但是 pip install,我仍然得到 apache-beam 2.2。
请帮忙
我有同样的需求,我试过这种方式安装apache Beam
它对我有用。
步骤 01:确保安装 python3.7 或更高版本
步骤02:Beam版本,我的要求选择2.27
pip3 install apache-beam==2.27.0
在我全新的虚拟环境中。
我运行
pip search apache-beam
我得到了
apache-beam (2.9.0)
那我运行
pip install apache-beam
pip list
但是我安装了 apache-beam 2.2,而不是 2.9
apache-beam 2.2.0
然后我运行
python -m apache_beam.examples.wordcount --output cout
我收到错误
The Apache Beam SDK for Python is supported only on Python 2.7.
来自这份文件
https://towardsdatascience.com/hands-on-apache-beam-building-data-pipelines-in-python-6548898b66a5
beam 2.9 将支持 python3。但是通过 pip search 我找到了 apache-beam 2.9。但是 pip install,我仍然得到 apache-beam 2.2。
请帮忙
我有同样的需求,我试过这种方式安装apache Beam 它对我有用。
步骤 01:确保安装 python3.7 或更高版本 步骤02:Beam版本,我的要求选择2.27
pip3 install apache-beam==2.27.0