When using `execution_mode="venv"` is it possible ...
# general
s
When using
execution_mode="venv"
is it possible to ask for
pip
to be installed? With Apache Beam we're seeing
Copy code
INFO:apache_beam.runners.portability.stager:Downloading source distribution of the SDK from PyPi
INFO:apache_beam.runners.portability.stager:Executing command: ['/Users/yjabri/.pex/venvs/7145acccd1630aacaf0a5bc46cb136ddcd4dbc9e/779eb2cc0ca9e2fdd204774cbc41848e4e7c5055/bin/python', '-m', 'pip', 'download', '--dest', '/var/folders/m8/cmsvrd417n39w5xjzjhmnznm0000gq/T/tmpsjfma0vs', 'apache-beam==2.44.0', '--no-deps', '--no-binary', ':all:']
erroring out because
Copy code
╰❱ /Users/yjabri/.pex/venvs/7145acccd1630aacaf0a5bc46cb136ddcd4dbc9e/779eb2cc0ca9e2fdd204774cbc41848e4e7c5055/bin/python -m pip   
/Users/yjabri/.pex/venvs/7145acccd1630aacaf0a5bc46cb136ddcd4dbc9e/779eb2cc0ca9e2fdd204774cbc41848e4e7c5055/bin/python: No module named pip
1
This ended up being relatively easy. We just included
pip
in our requirements.txt (It took a second for us to think to do that as it just feels so awkward) and made that an explicit dependency for apache-beam
🚀 1