Reputation: 3301
In my fresh new virtual environment.
I run
pip search apache-beam
I got
apache-beam (2.9.0)
Then I run
pip install apache-beam
pip list
But I got apache-beam 2.2 installed, instead of 2.9
apache-beam 2.2.0
I then run
python -m apache_beam.examples.wordcount --output cout
I got the error
The Apache Beam SDK for Python is supported only on Python 2.7.
From this document
https://towardsdatascience.com/hands-on-apache-beam-building-data-pipelines-in-python-6548898b66a5
beam 2.9 will support python3. But pip search I found apache-beam 2.9. but pip install, I still get apache-beam 2.2.
Please help.
Upvotes: 0
Views: 1033
Reputation: 310
I got the same kind of requirement, I tried this way to install apache Beam it was worked for me.
Step 01: Make sure to install python 3.7 or above Step 02: Beam version, I choose 2.27 for my requirement
pip3 install apache-beam==2.27.0
Upvotes: 1